Check out example codes for "iterate map in java 8 using stream". It will help you in understanding the concepts better.

Code Example 1

public void iterateUsingStreamAPI(Map<String, Integer> map) {
    map.entrySet().stream()
      // ...
      .forEach(e -> System.out.println(e.getKey() + ":" + e.getValue()));
}

Learn ReactJs, React Native from akashmittal.com