Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. package wt.apcs.lab7;
  2.  
  3. public class Tester {
  4. public static void main(String[] args) {
  5. Book b1 = new Book("The World According to Garp", "GK Chesterton", 864);
  6. System.out.println(b1.getTitle());
  7. System.out.println(b1.getPageCount());
  8. System.out.println(b1.getSBN());
  9. b1.isAuthor("GK Chesterton");
  10. b1.shouldIRead(900);
  11. System.out.println(" ");
  12. Book b2 = new Book("Infinite Jest", "David Foster-Wallace", 1079);
  13. System.out.println(b2.getTitle());
  14. System.out.println(b2.getPageCount());
  15. System.out.println(b2.getSBN());
  16. b2.isAuthor("Harry Potter");
  17. b2.shouldIRead(1000);
  18. System.out.println(" ");
  19. Book b3 = new Book("Anna Karenina", "Leo Tolstoy", 864);
  20. System.out.println(b3.getTitle());
  21. System.out.println(b3.getPageCount());
  22. System.out.println(b3.getSBN());
  23. b3.isAuthor("Sicklermode");
  24. b3.shouldIRead(864);
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement