摘要: Iterator Iterator是一个接口,主要用于遍历Collection集合中的元素,而不保留该对象的内部表示。 Collection实现了Iterator接口,所以在Collection中都有这样一个iterator()方法 其返回Iterator的具体实现。 Iterator接口内相关方法 阅读全文
posted @ 2022-06-14 22:48 大专菜码 阅读(141) 评论(0) 推荐(0)