Java.util.TreeSet Class - AlphaCodingSkills - 0 views
-
eyssant on 19 Sep 20Java.util package provides a TreeSet class which is a NavigableSet implementation based on a TreeMap. The elements are ordered using their natural ordering, or by a Comparator provided at set creation time, depending on which constructor is used. The class guarantees that the Map will be in ascending key order and backed by a TreeMap.