title: How to use RAW folder for multiple audio files
body: <p>I have the following function:</p>
  
  <pre><code>strNameValue = prefs.getString("NamePosition", "");
          inNameValueConversion = Integer.parseInt(strNameValue);
  
          if (inNameValueConversion == 0) {
              DisplayInformation(inNameValueConversion, R.raw.audio01);
          }
          if (inNameValueConversion == 1) {
              DisplayInformation(inNameValueConversion, R.raw.audio02);
          }
          if (inNameValueConversion == 2) {
              DisplayInformation(inNameValueConversion, R.raw.audio03);
          }
          if (inNameValueConversion == 3) {
              DisplayInformation(inNameValueConversion, R.raw.audio04);
          }
  </code></pre>
  
  <p>Because all the audio file starts with <code>audio</code> and only the number changes at the end I wanted to create a function which allows me to use less code like this:</p>
  
  <pre><code>public void DisplayInformation(int inNum, final int inSoundResource) {
          if (inSoundResource &lt; 2) {
              strIConv = String.valueOf("0" + inSoundResource);
              inConv = Integer.parseInt(strIConv);
              int k = R.raw.audio+"inConv";
          }
  }
  </code></pre>
  
  <p>I get the following error: <code>audio cannot be resolved or is not a field</code></p>
  
  <p>How do I edit the above code so I can just use one function instead of using so many IF statement, since it will be 90+ times.</p>