Returns the value associated with the specified key. Returns null if the key is not found.
Example:
var map = new TreeMap<string,string> ((a, b) => {
return strcmp (a, b);
});
map.put ("key", "value");
assert (map.get ("key") == "value");
assert (map.get ("missing") == null);
| key |
the key to look up. |
|
the associated value, or null if not found. |