for each in java set code example
Example: java set foreach
Set<String> set = new HashSet<String>();
//populate set
for (String s : set) {
System.out.println(s);
}
Set<String> set = new HashSet<String>();
//populate set
for (String s : set) {
System.out.println(s);
}