package CIS115.linkedlist; public class BookMain { public static void main(String[] args) { // set up the list BookList list = new BookList(); list.add(new Book()); // default book list.add(new Book("Java Text", "Deitel & Deitel", 300000)); list.add(new Book("Little, Big", "John Crowley", 500)); list.add(new Book("Allan Quatermain", "H. Rider Haggard", 200)); list.add(new Book("To Kill a Mockingbird", "Harper Lee", 281)); list.add(new Book("1984", "George Orwell", 328)); list.add(new Book("Pride and Prejudice", "Jane Austen", 279)); list.add(new Book("The Great Gatsby", "F. Scott Fitzgerald", 180)); list.add(new Book("Moby-Dick", "Herman Melville", 635)); list.add(new Book("The Catcher in the Rye", "J.D. Salinger", 214)); list.add(new Book("Brave New World", "Aldous Huxley", 288)); list.add(new Book("The Hobbit", "J.R.R. Tolkien", 310)); list.add(new Book("Fahrenheit 451", "Ray Bradbury", 249)); list.add(new Book("The Lord of the Rings", "J.R.R. Tolkien", 1178)); System.out.println("Before"); list.printList(); list.remove(13); System.out.println("Removed 13"); list.printList(); list.remove(5); System.out.println("Removed 5"); list.printList(); list.remove(0); System.out.println("Removed 0"); list.printList(); } }