TreeMap in java

Ashok Veer | May 09, 2020 | | |



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...


Share this article

0 comments:

Post a Comment

 
Copyright © 2019 techfloaters • All Rights Reserved.
Template Design by Ashok Veer ( veersoft solution)