Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package wt.apcs.lab7;
- public class Tester {
- public static void main(String[] args) {
- Book b1 = new Book("The World According to Garp", "GK Chesterton", 864);
- System.out.println(b1.getTitle());
- System.out.println(b1.getPageCount());
- System.out.println(b1.getSBN());
- b1.isAuthor("GK Chesterton");
- b1.shouldIRead(900);
- System.out.println(" ");
- Book b2 = new Book("Infinite Jest", "David Foster-Wallace", 1079);
- System.out.println(b2.getTitle());
- System.out.println(b2.getPageCount());
- System.out.println(b2.getSBN());
- b2.isAuthor("Harry Potter");
- b2.shouldIRead(1000);
- System.out.println(" ");
- Book b3 = new Book("Anna Karenina", "Leo Tolstoy", 864);
- System.out.println(b3.getTitle());
- System.out.println(b3.getPageCount());
- System.out.println(b3.getSBN());
- b3.isAuthor("Sicklermode");
- b3.shouldIRead(864);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement