Enumeration elements()
Returns an enumeration of the values in this hashtable.
Enumeration keys()
Returns an enumeration of the keys in this hashtable.
Returns an enumeration of the values in this hashtable.
Enumeration keys()
Returns an enumeration of the keys in this hashtable.
如楼上所说,你直接调用就好了!
for example:Enumeration ea;
String key;
while(ea.hasMoreElements())
{
key=(String)ea.nextElement();
}
keySet()获取所有的key