Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to iterate hashset in java 8

Set<String> set = new HashSet<String>();
for (String s : set) {
    System.out.println(s);
}

//Java 8:
set.forEach(System.out::println);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #iterate #hashset #java
ADD COMMENT
Topic
Name
9+9 =