遍历ArrayList,Iterator和for循环哪个更快

2025-06-29 10:50:23
推荐回答(1个)
回答1:

除了用for循环也可以用迭代器 ArrayList al=new ArrayList();for(int i=0;i