title: Android - populate hashmap with different data types
body: <p>Is it possible to populate hashmap like this?</p>
  
  <pre><code>final HashMap&lt;String, String&gt; map = new HashMap&lt;&gt;();
              map.put("path", path);
              map.put("tableName", "table");
              map.put("fileType", fileType);
  
  final HashMap&lt;String, String&gt; option = new HashMap&lt;&gt;();
              map.put("option", option.put("header", "true"));
  </code></pre>
  
  <p>Or is there another right (or better) way than this? because when I try to print "map" the key "option" has no value in it. </p>
  
  <p>Thanks in advance</p>