Java Iterator

Java Iterator

The Java Iterator takes the place of Enumeration in the Java Collections Framework and allows you to iterate over a collection. In Java iterators differ from enumerations, With well defined semantics iterators allow the caller to perform removal of elements in underlying collections.