Saturday, August 15, 2009

Java Generics List Iterator

Example of using Java generics list iterator

List<Element> l;

for (ListIterator<Element> it = l.listIterator(); it.hasNext(); )
{
Element e = it.next();
.....
}