lastKey


Description:

public K lastKey ()

Returns the largest key in the map. Returns null if the map is empty.

Example:

    var map = new TreeMap<string,string> ((a, b) => {
return strcmp (a, b);
});
map.put ("a", "1");
map.put ("c", "3");
assert (map.lastKey () == "c");

Returns:

the largest key, or null if empty.