I have a class that implements the Enumeration interface, but Java\'s foreach loop requires the Iterator interface. Is there an <
Enumeration
Iterator
No need to roll your own. Look at Google's Guava library. Specifically
Iterators.forEnumeration()