List of utility methods to do TreeSet Create
TreeSet | newTreeSet(E... elements) Creates a new TreeSet with the provided elements. return new TreeSet<>(Arrays.asList(elements)); |
Set | newTreeSet(V... values) new Tree Set Set<V> set = new TreeSet<V>(); Collections.addAll(set, values); return set; |