[疑难咨询] translation!
ASDF1982
2007-10-12
哪为朋友帮助准确翻一下下面的QA呢
Q: What is an Iterator? A: Some of the collection classes provide traversal of their contents via a java.util.Iterator interface. This interface allows you to walk through a collection of objects, operating on each object in turn. Remember when using Iterators that they contain a snapshot of the collection at the time the Iterator was obtained; generally it is not advisable to modify the collection itself while traversing an Iterator. |
|
ginge
2008-02-26
我来翻译一下
Q:什么是迭代器? A:一些集合类型通过java.util.Iterator接口提供对自身内容的遍历。这个接口允许你顺次访问集合里面的对象以便对每个对象进行操作。必须注意的是,由于取得迭代器的时候,它保留了一份集合的快照,因此,总的来说,在使用迭代器的时候不建议遍历时修改集合的内容。 |