Side Topic: Iterator in Java
Interface Iterator
Java 中常见的数据结构和它内置的iterator: create an instance o f iterator
Iterator 的subInterface
API 1: E next()
API2: boolean hasNext()
API 3: void forEachRemaining (Consumer<? super E> action)
API 4 void remove()
Last updated