Package java.util
Class Hashtable

Public Method toString

String toString()

Overrides:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Returns a string representation of this hashtable in the form of a set of entries, enclosed in brakes and separated by the ASCII characters comma and space. Each entry is rendered as the key, an equals sign, and the associated element, where the toString method is used to convert the key and element to string.

Example

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

   Logger.log(hashTable.toString());

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