title: Is it possible to have a hashmap with 4 objects?
body: <p>Can I have an hashMap with say ID as my key and info, name, quantity as my values?</p>
  
  <p>ok, say I have a class (Products) already that sets my variables, getters and setters. In my Invoice class, which is where the hashMap would be. Would I put like: </p>
  
  <pre><code>private HashMap&lt;String, Products&gt; keys = new HashMap&lt;String, Products&gt;
  </code></pre>
  
  <p>I'm not quite sure how to access the HashMap though. Say I implement a class that allows me to add and remove invoices from the HashMap, I do not know what the values would be:</p>
  
  <pre><code>keys.put(??value of id??,??not sure what goes here??);
  </code></pre>