一个集合在Java中有多个迭代器吗? [英] Can a collection have multiple iterators in Java?

查看:268
本文介绍了一个集合在Java中有多个迭代器吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有可能在单个集合中有多个迭代器,并且每个都独立保持跟踪吗?这是假定在分配迭代器后没有删除或插入。

Is it possible to have multiple iterators in a single collection and have each keep track independently? This is assuming no deletes or inserts after the iterators were assigned.

推荐答案

是的。

有时真的很讨厌,答案必须是30个字符。

Sometimes it's really annoying that answers have to be 30 characters.

这篇关于一个集合在Java中有多个迭代器吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆