84669 personnes étudient
152542 personnes étudient
20005 personnes étudient
5487 personnes étudient
7821 personnes étudient
359900 personnes étudient
3350 personnes étudient
180660 personnes étudient
48569 personnes étudient
18603 personnes étudient
40936 personnes étudient
1549 personnes étudient
1183 personnes étudient
32909 personnes étudient
Be careful not to keep references to the objects from this iterator.To improve GC performance the same object is re-used in next().
next()
请问这段注释是什么含义?
光阴似箭催人老,日月如移越少年。
下面的理解对吗?
不要保存迭代器里的对象的引用。
举个例子, iterator里面有十个对象,你用一次next,第一个就被移出了,所有执行完,迭代器为空,如果你在下面还引用这个迭代器里的对象的话,就会报空指针了
下面的理解对吗?
不要保存迭代器里的对象的引用。
举个例子, iterator里面有十个对象,你用一次next,第一个就被移出了,所有执行完,迭代器为空,如果你在下面还引用这个迭代器里的对象的话,就会报空指针了