Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

hashmap foreach

for (Map.Entry<String,Integer> pair : myHashMap.entrySet()) {
    System.out.println(pair.getKey());
    System.out.println(pair.getValue());
}
Source by pt.stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #hashmap #foreach
ADD COMMENT
Topic
Name
7+8 =