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());
        }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #looping #hash #map #key
ADD COMMENT
Topic
Name
4+5 =