What is an Iterator?
Some of the collection classes give traversal of their contents via a java.util.Iterator interface. This interface permits you to walk through a collection of objects, operating on every object in turn.
Remember when using Iterators that they have a snapshot of the collection at the time the Iterator was obtained; generally it is not advisable to modify the collection itself whereas traversing an Iterator.