java 重定义数组的实现方法(与VB的ReDim相像)
复制代码代码如下://param objArr the expanded object of Array. //param newLength the length of the new Array public static Object getNewArr(Object objArr, int newLength) { if (!objArr.getClass().isArray()) {//判断类型 return null; } // get the array's componentType Cl
2024-11-19