public class LinkedList { public ListIteratior listIterator() {. . . } . . . } public interface ListIteratior { Object next(); boolean hasNext(); void add(Object value); void remove(); void set(Object value); . . . }