nExemplos
n// Percorrendo uma lista
de trás para frente
n
nfor(
ListIterator<Type> i=list.listIterator(l.size()); i.hasPrevious(); ) {
n Type e = i.previous();
n ...
n}
n
n//Pesquisa da posição de
elemento – List.indexde
n
npublic int indexde(E e) {
n for (ListIterator i = listIterator();
i.hasNext(); )
n if ( e==null ?
i.next()==null : e.equals(i.next()) )
n return i.previousIndex();
n return -1; // Object
not found !!!
n}