package class2_2_Interfaces_start;// Dr. Yoder. MSOE. 02 December 2016 import java.util.ArrayList; import java.util.LinkedList; public class LibraryDriver { public static void main(String[] args) { String className; className = "SE1021"; ArrayList books; books = new ArrayList<>(); books.add(new Book("Don Quixote","Cervantes")); books.add(new Book("Les Misérables","Hugo")); books.add(new Book("Monster Inc","Pixar")); // not really a book Library library = new Library(); library.addBooks(books); Book found = library.findByAuthor("Pixar"); System.out.println("found = " + found); // Use Linked Lists because they are very efficient at adding at the front (index 0) LinkedList summerReadingList = new LinkedList<>(); summerReadingList.add(0, new Book("The Little Match Girl","Anderson")); summerReadingList.add(0, new Book("The Lord of the Rings","Tolkien")); // TODO: Add summer reading list to library // library.addBooks(summerReadingList); found = library.findByAuthor("Tolkien"); System.out.println("found = " + found); } }