dcsimg

How do I convert an old-style Enumeration to something in the Collections Framework?

John Zukowski

Prior to Java 1.4, any conversion had to be manually done. With the introduction of 1.4, you can call Collections.list(enumeration) to automatically convert the Enumeration to an ArrayList.