title: How to get Android String Array if i have Array name in another String
body: <p>I have a problem, a technical one. I have a list view, when I click an item I get content at that specific position and send it to next activity through 'putExtra'</p>
  
  <p>On next activity what i am doing is </p>
  
  <pre><code>        String item;
          Bundle extras = getIntent().getExtras(); 
          if (extras != null) {
              item = extras.getString("item");
          }
  </code></pre>
  
  <p>Now lets say here <strong>item = "Java";</strong></p>
  
  <p>Now what I want is 
          <strong>termsArray = getResources().getStringArray(R.array.Java);</strong></p>
  
  <p>But i donot want R.array.Java, I want some thing like R.array.<strong>item</strong></p>
  
  <p><strong>String Arrays in XML</strong> </p>
  
  <pre><code>&lt;string-array name="Java"&gt;
  &lt;item&gt;A&lt;/item&gt;
  &lt;item&gt;B&lt;/item&gt;
  &lt;item&gt;C&lt;/item&gt;
  &lt;/string-array&gt;
  
  &lt;string-array name="C"&gt;
  &lt;item&gt;A&lt;/item&gt;
  &lt;item&gt;B&lt;/item&gt;
  &lt;item&gt;C&lt;/item&gt;
  &lt;/string-array&gt;
  
  &lt;string-array name="php"&gt;
  &lt;item&gt;A&lt;/item&gt;
  &lt;item&gt;B&lt;/item&gt;
  &lt;item&gt;C&lt;/item&gt;
  &lt;/string-array&gt;
  </code></pre>
  
  <p>I can do this task using IF-else but I have many String Arrays, so it is not possible to use IF-else </p>