Associates the specified value with the specified key. If the key already exists, the value is replaced.
Example:
var map = new TreeMap<string,string> ((a, b) => {
return strcmp (a, b);
});
map.put ("key", "value");
assert (map.get ("key") == "value");
| key |
the key. |
| value |
the value. |