Package java.util
Class TreeMap
Description:
Removes the mapping for the specified key from this TreeMap if present.
Example
TreeMap treeMap1 = new TreeMap();
treeMap1.put("1", "T");
treeMap1.put("2", "r");
treeMap1.put("3", "e");
treeMap1.put("4", "e");
treeMap1.put("5", "M");
treeMap1.put("6", "a");
treeMap1.put("7", "p");
TreeMap treeMap2 = new TreeMap();
treeMap2.putAll(treeMap1);
Logger.log("treeMap1: " + treeMap1);
treeMap2.remove("3");
Logger.log("treeMap2: " + treeMap2);
The example above returns puts all elements from the treeMap1 into the treeMap2 and removes the third element from the treeMap2.