Consider the following code
class OuterClass{ class InnerClass{ int x; int y; void calculateX(){ x = y+z;//I want to acce
It generally shouldn't (it's a sign of a design problem), but try OuterClass.this.y.
OuterClass.this.y