2 回答
阿旭_
TA贡献217条经验 获得超353个赞
package com.abc.ccc; public class MyClass { private class InnerClass { } public static void main(String[] args) { InnerClass[] mInnerClassArr = new MyClass().getInnerClass(5); } private InnerClass[] getInnerClass(int i) { InnerClass[] mInnerClassArr = new InnerClass[i]; for (int j = 0; j < mInnerClassArr.length; j++) { mInnerClassArr[j] = new InnerClass(); } return mInnerClassArr; } }
添加回答
举报
0/150
提交
取消