Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

looping through a hash map and getting the key

 HashMap<Integer, Integer> table = new HashMap<>();
for(Map.Entry<Integer, Integer> key: table.entrySet()){
           System.out.println(key.getKey() + " " + key.getValue());
        }
 
PREVIOUS NEXT
Tagged: #looping #hash #map #key
ADD COMMENT
Topic
Name
5+4 =