Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java 8 map foreach

public void iterateUsingLambda(Map<String, Integer> map) {
    map.forEach((k, v) -> System.out.println((k + ":" + v)));
}
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #java #map #foreach
ADD COMMENT
Topic
Name
8+2 =