I cannot understand why TreeMap is called TreeMap but not SortedMap.
TreeMap
represents an implementation of an interface SortedMap
. or implemented . SortedMap
TreeMap
As I understand it, TreeMap is a map that automatically sorts its elements.
, TreeMap
, .