一个简单的内隐类问题
public class appHello {
class MyObjectInteger{
private int Fi=0;
public MyObjectInteger(int j){
Fi=j;
}
public int ValueInteger(){
return Fi;
}
}
public static void main(String[] args) {
appHello a=new appHello();
appHello.MyObjectInteger moi=a.new MyObjectInteger;
System.out.println("hello world");
}
}
我已经在申明了外部类,为什么还是不能通过