摘要: 1.Iterator接口 public interface Iterator<E> 对 collection 进行迭代的迭代器。 Java中有多种集合,不同集合存储元素的方式不尽相同。 Iterator提供了一种对于不同集合的通用遍历方式。 集合的顶层接口Collection中有一个方法iterat 阅读全文
posted @ 2019-12-09 17:01 绮丽梦境 阅读(402) 评论(0) 推荐(0) 编辑