Accessing the value of a variable by its name as string in Java
<p>I have a string containing the variable name. I want to get the value of that variable.</p>

<pre><code>int temp = 10;
String temp_name = "temp";
</code></pre>

<p>Is it possible to access the value <code>10</code> by using <code>temp_name</code>?</p>
