Iterator interface
From the Java API documentation at java.sun.com:
public interface Iterator
An iterator over a collection. Iterator takes the place of Enumeration in the Java collections framework. Iterators differ from enumerations in two ways:
- Iterators allow the caller to remove elements from the underlying collection during the iteration with well-defined semantics.
- Method names have been improved.
Since: 1.2
See Also: Collection, ListIterator, Enumeration