public class Driver { public static void main (String [] args) { Manager aManager = new Manager(); // Display: Empty listt System.out.println("Part I: display empty list"); aManager.display(); System.out.println(); // Destroy list System.out.println("Part II: erasing the entire list and displaying the empty list"); aManager.eraseList(); aManager.display(); System.out.println(); // Trying to remove element when there is nothing to remove. System.out.println("Part III: removing elments from an empty list"); aManager.remove(); System.out.println(); // Add 3 books System.out.println("Part IV: adding elements and displaying non-empty list"); aManager.add(); aManager.add(); // Display: non-empty list aManager.display(); System.out.println(); // Removing elements (both cases covered: 1)element to be removed is the first element // 2) element to be removed is any element but the first. // JT's note: there's 3 calls to remove when 2 elements added previously so one of the times // that remove is called it should show an error message that the list is already empty. System.out.println("Part V: removing elements from a non-empty list"); aManager.remove(); aManager.remove(); aManager.remove(); aManager.display(); System.out.println(); // Add some books and display list in order but do it recursively. System.out.println("Part VI: displaying list recursively"); System.out.println("Recursive display of list: empty list"); aManager.displayRecursive(); aManager.add(); aManager.add(); System.out.println("Recursive display of list: non-empty list"); aManager.displayRecursive(); System.out.println(); } }