title: Search value for key in string-array android
body: <p>i have a string-array in my res/values/strings.xml</p>
  
  <pre><code> &lt;string-array name="my_list"&gt;  
      &lt;item&gt;Item1&lt;/item&gt;
      &lt;item&gt;Item2&lt;/item&gt;
  &lt;/string-array&gt;
  </code></pre>
  
  <p>i am accessing it in my application as and comparing it with my value in loop.</p>
  
  <pre><code>String[] myStrings = getResources().getStringArray(R.array.my_list);
  for(int i=0;i&lt;myStrings.length;i++)
  {
      System.out.println(myStrings[i]);
  }
  </code></pre>
  
  <p>Now i need the search the items according to key to get the respective item.Example</p>
  
  <pre><code>&lt;string-array name="my_list"&gt;  
      &lt;item name="one"&gt;Item1&lt;/item&gt;
      &lt;item name="two"&gt;Item2&lt;/item&gt;
  &lt;/string-array&gt;
  </code></pre>
  
  <p>if my search hay key "one" then get its corresponding value(Item1).</p>
  
  <p>How to accomplish this task.</p>
  
  <p>Thanks</p>