Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

empty set java

// 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
 
PREVIOUS NEXT
Tagged: #empty #set #java
ADD COMMENT
Topic
Name
1+5 =