java.util.Iterator

This provides support for linear iteration through unspecified elements. Generally, {@link Iterator}s are not meant to be shared across threads. This class should be used instead of {@link Enumeration}.