List of utility methods to do Enumeration to Array Convert
A[] | toArray(Enumeration 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 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); |