« Return to the blog entry
TreeSets since 1.2...
"adds the specified element e to this set if the set contains no element e2 such that (e==null ? e2==null : e.equals(e2))."
TreeSet(Comparator<? super E> comparator)
Constructs a new, empty tree set, sorted according to the specified comparator.
TreeSets since 1.2...
"adds the specified element e to this set if the set contains no element e2 such that (e==null ? e2==null : e.equals(e2))."
TreeSet(Comparator<? super E> comparator)
Constructs a new, empty tree set, sorted according to the specified comparator.