how to display the elements in hashset java code example Example: HashSet h = new HashSet(); HashSet<String> h = new HashSet<String>();