我在线程“main”中得到Exception java.lang.NullPointerException
class Outer {
Outer() {
}
class Inner {
Inner() {
}
}
public Inner func() {
Outer.Inner type = this.new Inner(); // this is correct or not ??
return type; //I want to return this object
}
}
我在公共内部功能中的问题(A a)与否?
Class main中的我定义了
Outer O = new Outer();
Outer.Inner t;
t = O.func(); //**I get Exception Her**