
The Collection Framework • 537
int indexOf(object obj)
Returns the index of the fi rst instance of obj in the invoking list. If
obj is not an element of the list, −1 is returned.
int lastIndexOf(Object obj)
Returns the index of the last instance of obj in the invoking list. If
obj is not an element of the list, −1 is returned.
ListIterator listIterator()
Returns an iterator to the start of the invoking list.
ListIterator listIterator
(int index)
Returns an iterator to the invoking list that begins at the specifi ed
index.
Object remove(int index)
Removes the element at position index from the invoking list and
returns the deleted element. The resulting ...