public class LabQuiz3{ public static void main(String [] args){ final int MAX_CHAPTERS = 10; final int CHAPTERS_TO_ADD = 4; System.out.println("Welcome to Lab Quiz 3!\n"); System.out.println("Step 1: Creating " + CHAPTERS_TO_ADD + " chapters.\n"); Chapter [] theChapters = new Chapter[CHAPTERS_TO_ADD]; theChapters[0] = new Chapter("Introduction", 10); theChapters[1] = new Chapter("The Rules for Playing Jeopardy", 20 ); theChapters[2] = new Chapter("What is How to Win at Jeopardy?", 20); theChapters[3] = new Chapter("Conclusion", 30); System.out.println("The chapters that were created are: "); for(int i=0; i< CHAPTERS_TO_ADD; i++){ System.out.println(theChapters[i]); } // Uncomment the lines that follow as you implement the Book class System.out.println("\nStep 2: Creating a book called Jeopardy for Dummies."); // Book myBook = new Book("Jeopardy for Dummies", MAX_CHAPTERS); //for(int index = 0; index < CHAPTERS_TO_ADD; index++) { // myBook.addChapter(theChapters[index]); //} System.out.println("\nStep 3: Printing the book contents:"); //System.out.println(myBook); //System.out.println("myBook has " + myBook.getNumPages() + " pages.\n"); System.out.println("Step 4: Removing the Introduction\n"); //myBook.removeChapter("Introduction"); //System.out.println(myBook); //System.out.println("myBook has " + myBook.getNumPages() + " pages."); } }