How to add a string as part of a variable name representing an integer, java
<p>I want to add a string to a variable name that represents an integer. For example:</p>

<pre><code>String test = "v1f1";
set_view(R.drawable.test);
</code></pre>

<p>And then ideally it would look for R.drawable.v1f1, but it looks for R.drawable.test instead, which doesn't exist.</p>

<p>Anyone know how to do this?</p>

<p>Thanks.</p>
