Iterator用完即丢,只有那些状态有关的方法才不会导致数据变少。
It is of particular importance to note that, unless stated otherwise, one should never use an iterator after calling a method on it.
length方法会改变迭代器的状态。
Iterator用完即丢,只有那些状态有关的方法才不会导致数据变少。
It is of particular importance to note that, unless stated otherwise, one should never use an iterator after calling a method on it.
length方法会改变迭代器的状态。