Package java.util
Class HashMap
Description:
Returns the value to which this map maps the specified key. Returns null if the map contains no mapping for this key. A return value of null does not necessarily indicate that the map contains no mapping for the key. It's also possible that the map explicitly maps the key to null. The containsKey operation may be used to distinguish these two cases.
Example
HashMap map = new HashMap();
Integer i = new Integer(0);
map.put(i, "value");
Logger.log("Map element: " + map.get(i));
The example above clears the new created map and writes the result to the logger.