Collection集合、Iterator迭代器、增强for循环
Iterator迭代器(接口)对集合进行遍历
package Text1;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
public class Demo6 {
public static void main(String[] args) {
Collection<String> coll=new ArrayList<>(...
原创
2020-12-10 15:58:56 ·
132 阅读 ·
0 评论