Android Utililty Methods Enumeration to Array Convert

List of utility methods to do Enumeration to Array Convert

Description

The list of methods to do Enumeration to Array Convert 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);
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);