输出
[Student [name=Lilei, age=16], Student [name=Lili, age=18], Student [name=Lucy, age=18], Student [name=Hanmm, age=19]]
Iterator遍历
Lilei ... 16
Lili ... 18
Lucy ... 18
Hanmm ... 19
get方法遍历
Lilei ... 16
Lili ... 18
Lucy ... 18
Hanmm ... 19
listIterator遍历
Lilei ... 16
Lili ... 18
Lucy ... 18
Hanmm ... 19
list特有的逆向遍历
previous index:3
Hanmm ... 19
previous index:2
Lucy ... 18
previous index:1
Lili ... 18
previous index:0
Lilei ... 16
|