Answers for "get the first element of a hashset java"

1

how to get first element from hashset in java

Collection c;

Iterator iter = c.iterator();

Object first = iter.next();
Posted by: Guest on April-08-2021

Code answers related to "get the first element of a hashset java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language