How to Iterate over a Set or HashSet ?

over at this website rencontre femme russe en tunisie How to Iterate over a Set/HashSet ? Below example shows how to read all elements from the HashSet objects. You can iterate through HashSet by getting Iterator object. By calling iterator() method, you can get Iterator object. package HashSet; import java.util.HashSet; import java.util.Iterator; public class HashSetRead { public static void main(String a[]){ HashSet<String> hs = new HashSet<String>(); //add elements to HashSet hs.add("Selenium"); hs.add("Java"); hs.add("QTP"); Iterator<String> itr = hs.iterator(); while(itr.hasNext()){ System.out.println(; } } }

site de rencontre num try these out Output: