-->
下列增强for循环的代码中,有关说法正确的是()? for(intx:arr){ System.out.println(x); } A.arr必须是一个int数组 B.arr可以是字符串数组 C.arr必须是一个集合 D.arr可以是数组也可以是集合对象 正确答案:D