对数组或集合简单遍历读取其内容比较方便,但是某元素的读取和删除不方便int [] arr={1,2,3,4,5,8,9,7,4}; for(int i:arr){ System.out.print(i+" "); }