集合

来源:互联网 发布:linux 移动文件命令 编辑:程序博客网 时间:2024/06/09 23:39

Iterator it=c.iterator();

it.next();                //skip over the first element

it.remove();        //now remove it

当调用next时,迭代器便越过下一个元素,并且返回它刚越过的那个元素的引用。

 

原创粉丝点击