代码如下:
class Outer{
public static int a = 2;
class Inner{
int a;
public void show(){
System.out.println(this.a);
System.out.println(Outer.this.a);
}
}
}
public class Test{
public static void main(String[] args){
Outer.Inner in = new Outer().new Inner();
in.show();
}
}