title: Separate String with Key value Pair
body: <p>I've a string array which has got key and value which are separated using a delimiter. I need to separate the key value pair and move it to a HashMap.</p>
  
  <p>The string is as follows.</p>
  
  <pre><code>String[] str={"12345$abcd","12332$abcgd","5555$afdsd"};
  /*
   I need to move it to HashMap as key-value pairs
   12345=abcd
   12332=abcgd
   5555=afdsd
  */
  </code></pre>
  
  <p>Can someone please help me to do this in the most efficient way?</p>