// Set is implemented by HashSet and TreeSet classes // TreeSet sorts its elements Set<String> hashSet = new HashSet<>(); // Empty hash set Set<Integer> treeSet = new TreeSet<>(); // Empty tree set
Set<String> s = Collections.emptySet();