title: access to shadowed variable in local class
body: <p>i'm new in java and i confused for below example </p>
  
  <pre><code>public class Test {
  
     int testOne(){  //member method
         int x=5;
           class inTest  // local class in member method
             {
               void inTestOne(int x){
               System.out.print("x is "+x);
           //  System.out.print("this.x is "+this.x);
             }
    }
         inTest ins=new inTest(); // create an instance of inTest local class (inner class)
         ins.inTestOne(10);
         return 0;
     }
      public static void main(String[] args) {
     Test obj = new Test();
     obj.testOne();
  }
  }
  </code></pre>
  
  <p>why i can't access to shadowed variable in inTestOne() method with "this" keyword in line 8</p>