title: How to sum values from Java Hashmap
body: <p>I need some help, I'm learning by myself how to deal with maps in Java ando today i was trying to get the sum of the values from a Hashmap but now Im stuck.</p>
  
  <p>This are the map values that I want to sum.</p>
  
  <pre><code>HashMap&lt;String, Float&gt; map = new HashMap&lt;String, Float&gt;();
  
  map.put("First Val", (float) 33.0);
  map.put("Second Val", (float) 24.0);
  </code></pre>
  
  <p>Ass an additional question, what if I have 10 or 20 values in a map, how can I sum all of them, do I need to make a "for"?</p>
  
  <p>Regards and thanks for the help.</p>