Listen (II), Iteratoren

interface List<E> {
    boolean add(E o) ; ...
    Iterator<E> iterator() ; ...
}

class LinkedList<E>
    implements List<E>, ... { ... }

interface Iterator<E> {
    boolean hasNext() ;
    E next() ;
}



Johannes Waldmann 2004-11-30