Java Utililty Methods Enumeration to Array

List of utility methods to do Enumeration to Array

Description

The list of methods to do Enumeration to Array are organized into topic(s).

Method

A[]toArray(Enumeration enumeration, A[] array)
Marshal the elements from the given enumeration into an array of the given type.
ArrayList<A> elements = new ArrayList<A>();
while (enumeration.hasMoreElements()) {
    elements.add(enumeration.nextElement());
return elements.toArray(array);