Homework Assignment 1
Due : Tuesday, September 27th, before midnight.
Download the List interface and the SimpleList class from the code examples direcotry, and
modify them as follows :
- Change the List interface to have add (index, object), remove, set,
and get all throw a new exception, InvalidListIndexException.
-
Create the InvalidListIndexException class. It should extend
Exception.
-
Modify the add, remove, set, and get methods in SimpleList to check
if the requested index exists in the list, and throw the new exception
if it does not.
All code should be submitted via the online submit_cse116
command. You will need to submit all three files.
Last modified: Thu Sep 22 14:56:53 Eastern Daylight Time 2005