Skip to content

Commit 47567f9

Browse files
committed
修正:ListIterator 的使用
1 parent e631ca8 commit 47567f9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/org/javacore/collection/list/ListT0.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
* @since 2016-01-06 20:11:00
2424
* 打印list 全部元素,并找到其中元素aaa删除。要求:所有元素都遍历完
2525
* ListIterator 的使用
26+
* list那个remove回抛异常是因为快速失败的机制,
27+
* 他内置了一个modifyCount的变量记录list的长度变化,用Iter可以删除掉
2628
*/
2729
public class ListT0 {
2830
public static void main(String[] args) {

0 commit comments

Comments
 (0)