PPT Slide
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:
boolean hasNext() Returns true if the iteration has more elements.
Object next() Returns the next element in the interation.
void remove() Removes from the underlying collection the last element returned by the iterator (optional operation).