get the first element of a hashset java code example
Example: how to get first element from hashset in java
Collection c;
Iterator iter = c.iterator();
Object first = iter.next();
Collection c;
Iterator iter = c.iterator();
Object first = iter.next();