关于java迭代器的使用

关于迭代器

iterator

.next()会移动指针。

.hasNext(),不会移动指针。

.remove()删除当前指针的元素

posted @ 2020-10-14 12:40  一个人的架构之路  阅读(109)  评论(0)    收藏  举报