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.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Introduction To Programming With Java A Problem Solving Approach
ISBN: 9781260575248
3rd International Edition
Authors: John Dean
Question Posted: