title: get string value from HashMap depending on key name
body: <p>I have a <code>HashMap</code> with various keys and values, how can I get one value out?</p>
  
  <p>I have a key in the map called <code>my_code</code>, it should contain a string, how can I just get that without having to iterate through the map?</p>
  
  <p>So far I've got..</p>
  
  <pre><code>   HashMap newMap = new HashMap(paramMap);
     String s = newMap.get("my_code").toString();
  </code></pre>
  
  <p>I'm expecting to see a <code>String</code>, such as "ABC" or "DEF" as that is what I put in there initially, but if I do a <code>System.out.println()</code> I get something like <code>java.lang.string#F0454</code></p>
  
  <p>Sorry, I'm not too familiar with maps as you can probably guess ;)</p>