title: How do I convert <string-array> into a HashMap
body: <p>It is part of code of a weather application.</p>
  
  <p>I had written following code in strings.xml, but now I want to write in java file. I don't know how to write the following code in <code>HashMap</code> and obtain the value from it.</p>
  
  <p>Following are the <code>string-array</code>s in my XML.</p>
  
  <pre><code>   &lt;!-- Weather condtion 5,6 together with Dress --&gt;
      &lt;!-- Weather condtion 11,12 together with Dress --&gt;
      &lt;string-array name="eleven"&gt;
          &lt;item name="dress_6"&gt;dress_6&lt;/item&gt;
          &lt;item name="dress_0"&gt;dress_0&lt;/item&gt;
          &lt;item name="dress_1"&gt;dress_1&lt;/item&gt;
      &lt;/string-array&gt;
      &lt;!-- Weather condtion 9 together with Dress --&gt;
      &lt;string-array name="nine"&gt;
          &lt;item name="dress_6"&gt;dress_6&lt;/item&gt;
          &lt;item name="dress_4"&gt;dress_4&lt;/item&gt;
          &lt;item name="dress_14"&gt;dress_14&lt;/item&gt;
      &lt;/string-array&gt;
      &lt;!-- Weather condtion 5,6 together with Dress --&gt;
      &lt;string-array name="five"&gt;
          &lt;item name="dress_2"&gt;dress_2&lt;/item&gt;
          &lt;item name="dress_8"&gt;dress_8&lt;/item&gt;
          &lt;item name="dress_6"&gt;dress_6&lt;/item&gt;
      &lt;/string-array&gt;
      &lt;!-- condtion 2 --&gt;
      &lt;string-array name="two"&gt;
          &lt;item name="dress_11"&gt;dress_11&lt;/item&gt;
          &lt;item name="dress_5"&gt;dress_5&lt;/item&gt;
          &lt;item name="dress_0"&gt;dress_0&lt;/item&gt;
      &lt;/string-array&gt;
      &lt;string-array name="twentyFive"&gt;
          &lt;item name="dress_0"&gt;dress_0&lt;/item&gt;
          &lt;item name="dress_3"&gt;dress_3&lt;/item&gt;
          &lt;item name="dress_8"&gt;dress_8&lt;/item&gt;
      &lt;/string-array&gt;
      &lt;string-array name="twentySix"&gt;
          &lt;item name="dress_12"&gt;dress_12&lt;/item&gt;
          &lt;item name="dress_13"&gt;dress_13&lt;/item&gt;
          &lt;item name="dress_5"&gt;dress_5&lt;/item&gt;
      &lt;/string-array&gt;
      &lt;string-array name="thirtySix"&gt;
          &lt;item name="dress_11"&gt;dress_11&lt;/item&gt;
          &lt;item name="dress_9"&gt;dress_9&lt;/item&gt;
          &lt;item name="dress_4"&gt;dress_4&lt;/item&gt;
      &lt;/string-array&gt;
      &lt;string-array name="thirtySeven"&gt;
          &lt;item name="dress_12"&gt;dress_12&lt;/item&gt;
          &lt;item name="dress_13"&gt;dress_13&lt;/item&gt;
          &lt;item name="dress_3"&gt;dress_3&lt;/item&gt;
      &lt;/string-array&gt;
  </code></pre>