Package java.util
Class Hashtable

Public Method keys

Enumeration keys()

Overrides:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Returns an enumeration of the keys in this hashtable.

Example

   Hashtable hashTable = new Hashtable();
   hashTable.put("1", "h");
   hashTable.put("2", "a");
   hashTable.put("3", "s");
   hashTable.put("4", "h");

   Enumeration enum = hashTable.keys();

   while (enum.hasMoreElements())
      Logger.log("element: " + enum.nextElement());

The example above returns the keys from the hashtable and writs the result to the logger.