title: Stream Iterate hashMap and process the data
body: <p>I want to Iterate the hashmap using java Stream and would like to execute an inline function for each key
  and then sum the value</p>
  
  <pre><code>Map&lt;Integer, Integer&gt;  myMap= new HashMap&lt;Integer, Integer&gt;() {{ 
                  put(5000, 0);
                  put(1000, 10);
              }};
  
  myMap.entrySet().stream().map(e-&gt; {/* want to fetch the corresponding value and increment by X  and find the sum*/ });
  </code></pre>