Here you can find the source of getArray(Hashtable hash)
Parameter | Description |
---|---|
hash | Hashtable |
public static Object[] getArray(Hashtable hash)
//package com.java2s; import java.util.*; public class Main { /**/*from w w w . ja v a 2s.co m*/ * This method was created in VisualAge. * @param hash Hashtable * @return */ public static Object[] getArray(Hashtable hash) { int len = hash.size(); Object[] objs = new Object[len]; Enumeration e = hash.elements(); for (int i = 1; e.hasMoreElements(); i++) objs[len - i] = e.nextElement(); return objs; } }