几种遍历集合的方法

package 容器2; import java.util.*; public class IteratorTraverse { public static void main(String[] args) { Collection<Integer>collection = new ArrayList<Integer>(); for(int i=1;i<6;i++){ collec
相关文章
相关标签/搜索