class Demo3_Innerclass{
public static void main(String[] args){
Outer.Inner oi = new Outer.Inner(); //第五行求解
oi.method();
Outer.Inner2.method();
}
}
class Outer{
static class Inner{
public void method(){
System.out.println("HelloWorld");
}
}
static class Inner2{
public static void method(){
System.out.println("12345");
}
}
} |
|