|
|
The java.util package includes two interfaces, Sets and Maps . The TreeSet and the TreeMap classes implement their interfaces using balanced binary trees. If the data implements Comparable, the data will be stored in order. The HashSet and HashMap classes implement the java.util.Map .
|