title: How to create dynamic String Array if we dont know number of strings in the beginning?
body: <p>I have a <code>HashMap&lt;String, String&gt;</code>. If I want to create string array of <code>hashmap.values()</code>, we can create it as</p>
  
  <pre><code>String[] strArray = new String[hashmap.size()]
  </code></pre>
  
  <p>But my problem is if hashmap values contain "A,B,C" then I need to add A and B and C to strArray.</p>