摘要: 集合的每个内部类里面都有一个独有的迭代器,ArrayList\LinkedList\HashSet 里面都继承了Collection的迭代器 Collection c=new ArrayList() //继承 Iterator it=c.iterator() //返回当前集合的迭代器对象 while 阅读全文
posted @ 2020-07-29 12:01 xinZhiZhu 阅读(93) 评论(0) 推荐(0) 编辑