Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Library l1 = new Library();
- Date d1 = new Date(11111990);
- Date d2 = new Date(871991);
- FictionBook b1 = new FictionBook("Harry Potter", "JK Rowling", "I132414","1",d1,d2,true,"Action");
- NonFictionBook b2 = new NonFictionBook("The Hobbit", "Tolkien", "I343435","1",d1,d2,true,"Fantasy");
- Journal b3 = new Journal("Space, the universe and everything" , "Adam Holmwood", "I3325","1", d1,d2,true,"science");
- l1.theBooks.add(0, b3);
- l1.theBooks.add(1, b2);
- l1.theBooks.add(2, b1);
- System.out.println(l1.currentBook().toString());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement