内部类一个问题求解!!
[code=Java][/code]
class Demo{
static int i = 5;
public static class I1{
public class I2{
public class I3{
public I3(){
System.out.println("读到我啦");
}
}
}
}
}
class Demo1{
public static void main(String[] args){
//要怎么才能读到I3?
}
}
------解决方案--------------------
8好意思,把Demo给忽略了
Demo.I1.I2.I3 i3 = (new Demo.I1().new I2()).new I3();