title: Modify variable in Inner class Java
body: <p>I have a problem with Java inner classes which I can't figure out. Suppose you have</p>
  
  <pre><code>class Outer
  {
       int outer = 0;
       class Inner
       {
            int inner = Outer.this.outer; //(or just outer as it is not shadowed)
            inner = 3; //or whatever, even outer = 3
       }
  }
  </code></pre>
  
  <p>Well, when I write the last assignment I get the compilation error</p>
  
  <pre><code>Syntax error on token ";", , expected
  </code></pre>
  
  <p>on the precedent line.</p>
  
  <p>Why I cannot modify inner?</p>
  
  <p>Thank you!</p>