public class Outer{
int i = 1;
public void print(){
final int i = 2;//第二个i
class Inner(){
int i = 3;
public void print(){
System.out.println();//括号里面写什么可以访问到第二个i
}
}
}
}
[code]public class Outer{
int i = 1;
public void print(){
final int i = 2;//第二个i
class Inner {
int i = 3;
public void print(){
System.out.println(Outer.this.i);//括号里面写什么可以访问到第二个i
}
}
}