神之梦 发表于 2013-5-25 01:23
楼主可以贴出完整程序么?
public class Test {
int i = 10;
class Test1 {
int i = 20;
public void run() {
System.out.println(Test.this.i);
System.out.println(this.i);
}
}
public static void main(String[] args) {
Test.Test1 tt = new Test().new Test1();
tt.run();
} |