public class Outer{ public void show(){ int b = 32; class Inner{ int b =13; System.out.print("方法中的b:"+ ) ;//怎么写 } } }
public class Outer{
public void show(){
int b = 32;
class Inner{
int b =13;
System.out.print("方法中内部的b:"+b +
"\n方法中外部的b:"+Outer.this.b ) ;//怎么写
}
}
}