Set<String> set = new HashSet<String>;
Iterator<String> iterator = set.iterator();
while(iterator.hasNext()){
String aString = iterator.next();
}
Set<String> set = new HashSet<String>;
for(String aString : set) {
System.out.println(aString);
}