Classes to convert between enumerations and iterators and to convert arrays to enumerations or iterators.
Enumeration e = new IteratorEnumeration(
collection.iterator()
);
Iterator i = new EnumerationIterator(
vector.elements()
);
Enumeration e = new ArrayEnumeration(
new String[]{"one","two","three"}
);
Iterator i = new ArrayIterator(
new String[]{"one","two","three"}
);