Package java.util
Class HashMap
boolean containsKey(Object key)
Overrides:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
Returns true if this map contains a mapping for the specified key.
Example
HashMap map = new HashMap();
Integer i = new Integer(0);
map.put(i, "value");
if (map.containsKey(i))
Logger.log("This map contains the specified key!");
The example above verifies that the map contains the specified key and writes the result to the logger.