Enumeration to ArrayList with list(Enumeration)

After seeing the interoperability between legacy and collections classes with "Enumerated Collection with enumeration()", let us see one more interoperability feature with list(Enumeration e). With this Enumeration object, legacy classes (JDK 1.0 DS are known as legacy classes) can be converted into ArrayList. For example, the Vector elements can be converted into ArrayList elements. Following …

Enumeration to ArrayList with list(Enumeration) Read More »