摘要: 一、迭代器Iterator 集合接口Collection继承了接口Iterable,该接口提供了一个用于获取迭代器Iterator的方法,使用迭代器我们可以逐个访问集合中的元素。下面是迭代器接口源码: 1 public interface Iterator<E> { 2 3 boolean hasN 阅读全文
posted @ 2021-09-27 14:41 re-phoenix 阅读(1748) 评论(0) 推荐(0) 编辑
levels of contents