Postponed catch elaboration: Modify this chapters StudentList2 program so that the drivers exception handler displays more than

Question:

Postponed catch elaboration:

Modify this chapter’s StudentList2 program so that the driver’s exception handler displays more than just “Invalid entry.” Instead, have it display the error class and message and the acceptable range of index values. Most of the change will be in the driver class’s catch block, but in your StudentList2 class you’ll want to add a size method that returns the size of the students ArrayList.

Sample session: Caleb Izumi Mary Usha Enter index of student to remove: 4 class java.lang.IndexOutOfBounds

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: