title: Why I'm unable to access the outer class variable from inner class?
body: <p>I'm doing something like below but it's not working. Why is that? And how to do it?</p>
  
  <pre><code>public class A {
      private int a;
  
      private class BInner {
          a = 10;
      }
  }
  </code></pre>