title: How to put/get values into/from Nested HashMap
body: <p>I want to create a nested HashMap that will take two keys of type float and give out value of type Integer.</p>
  
  <pre><code> public static HashMap&lt;Float, HashMap&lt;Float, Integer&gt;&gt; hashX = new HashMap&lt;Float,HashMap&lt;Float, Integer&gt;&gt;();
  </code></pre>
  
  <p>Is there a simple method of putting/getting the values like an ordinary HashMap i.e.</p>
  
  <pre><code>  hashX.put(key, value);
    hashX.get(key);
  </code></pre>
  
  <p>or is it a more complicated method that must be used? 
  I have searched around the web for a solution but am finding it tough to find a solution that applies to me. Any help would be appreciated!</p>