title: Nesting Maps in Java
body: <p>I want to store many details (like name, email, country) of the particular person using the same key in hashtable or hashmap in java?</p>
  
  <pre><code>hashMap.put(1, "Programmer");        
  hashMap.put(2, "IDM");       
  hashMap.put(3,"Admin");
  hashMap.put(4,"HR"); 
  </code></pre>
  
  <p>In the above example, the 1st argument is a key and 2nd argument is a value, how can i add more values to the same key?</p>