Java, nested class: how to access 'higher' level variable?
<p>i've this code</p>

<pre><code>public class MasterClass {

    private String myVariable;
    private ValuesClass objectA;

        class ValuesClass {

              public void method() {
                   myVariable = 1; // I can't access myVariable
              }
        }

} 
</code></pre>

<p>How to access myVariable  from inside ValuesClass ?</p>
