Answers for "how to ieterate map in java8"

0

java 8 map foreach

public void iterateUsingEntrySet(Map<String, Integer> map) {
    for (Map.Entry<String, Integer> entry : map.entrySet()) {
        System.out.println(entry.getKey() + ":" + entry.getValue());
    }
}
Posted by: Guest on May-29-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language