java_不知道数据类型情况下,数组遍历-反射时间:2023-03-09 04:40:56 if(items.getClass().isArray){ this.collection = new ArrayList(); int length = Array.getLength(items); for(int i=0;i<length;i++){ Object value = Array.get(items,i); this.collection.add(value); } }