Java集合类集的遍历方法-Iterator迭代器
Iterator又名迭代器,可以遍历集合对象的元素,主要接口和用法如下:
public interface Iterator;// 迭代器接口,一组指针序列An iterator over a collection. Iterator takes the place of Enumeration in the Java collections framework. Iterators differ from enumerations in two ways: * Iterators allow the caller to remove elements f ...