The Iterator Interface replaces the Enumeration interface. : Iterator « Utility Classes « SCJP






An object that implements Iterator examines every object in a Collection in a fixed order. 

Iterator Method       Returns         Replaces Enumeration Method

hasNext               boolean         hasMoreElements

next                  Object          nextElement

remove                void            (No equivalent)








8.27.Iterator
8.27.1.Iterator interface is expected to supplant the Enumeration interface
8.27.2.The Iterator Interface replaces the Enumeration interface.