Answers for "go through all entries of a hashmap"

2

go through all entries of a hashmap

for (Map.Entry<String, Object> entry : map.entrySet()) {
    String key = entry.getKey();
    Object value = entry.getValue();
    // ...
}
Posted by: Guest on May-25-2020

Code answers related to "go through all entries of a hashmap"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language