npublic interface ListIterator<E> extends Iterator<E> {
n // Moving forward
n boolean hasNext();
n E next();
n // Moving backward
n boolean hasPrevious();
n E previous();
n // Indexed access
n int nextIndex();
n int previousIndex();
n // Operations on
current position
n void remove(); // Optional -
remove current position
n void set(E o); // Optional - overwrites l element
returned
n void add(E o); // Optional –
add before current position
n}