Access and set a static variable with the name of the variable
<p>What I want to do is access a variable stored in one class with a string.
For example I have</p>

<pre><code>public class Values {
    public static boolean enabled;
}
</code></pre>

<p>And then in a different part of the project I have the object and a string with the fields name. How do I get and set the value of the field?</p>
