You can declare an array of innerclass
objects like this.
class util {
Outerclass.innerclass[] inner = new Outerclass.innerclass[10];
}
And to instantiate them you can do something like this inside the util
class.
void test() {
Outerclass outer = new Outerclass();
inner[0] = outer.new innerclass();
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…