Guest User

Untitled

a guest
Jan 24th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. //Author: Dermot Hegarty
  2. //You can use this, if you wish, to test parts 1 and 2.
  3. public class BookStoreTester
  4. {
  5.     public static void main(String args[])
  6.     {
  7.         BookStore theBookShop = new BookStore();
  8.        
  9.         theBookShop.addBook(new Book("The Grapes of Wrath", "John Steinbeck", 8.99));
  10.         theBookShop.addBook(new Book("The Corrections", "jonathan Franzen", 12.99));
  11.  
  12.         theBookShop.listAll();
  13.  
  14.     }
  15. }
Add Comment
Please, Sign In to add comment