Question: Given the partial class definition below, implement the remove method which will remove an item from the list given a valid index value. A valid
Given the partial class definition below, implement the remove method which will remove an item from the list given a valid index value. A valid index value represents an existing item, that is 0 <= index < size(). If the index is invalid, an Exception is thrown.
The method header is:
public void remove(int index) throws
ListIndexOutOfBoundsException
The exception class has been created for you already.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
