Package java.util
Class HashMap

Public Method size

int size()

Overrides:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Returns the number of key value mappings in this map.

Example

   HashMap map = new HashMap();
   Integer i = new Integer(0);
   map.put(i, "value");

   Logger.log("map size: " + map.size());

The example above returns the number key values.