title: HashMap<String, Object> : How to put Object itself as in place of String
body: <pre><code>A a = new A();     //classA {   }
  
  HashMap&lt;String, Object&gt; hm = new Hashmap&lt;String,Object&gt;();
  
  hm.put("A", a);
  </code></pre>
  
  <p>My question is, How can i put the Object itself instead of "A" in same declaration?</p>
  
  <pre><code>hm.put(`a??`, a);
  </code></pre>