The TreeMap
is sorted according to the natural ordering of its keys, or by
a Comparator provided at map creation
time, depending on which constructor is used.
Java TreeMap
is a part of collection since jdk 1.2 versions and available in java.util
package. TreeMap implements the Map interface and extends AbstractMap class. TreeMap
stores data in key & value pairs. read more...
0 comments:
Post a Comment