从容金鱼

文章
8
资源
0
加入时间
4年0月9天

Iterator.remove()用法指南

Iterator.remove()是删除最近(最后)使用next()方法的元素。   从迭代器指向的集合中移除迭代器返回的最后一个元素(可选操作)。每次调用 next 只能调用一次此方法。import java.util.*; public class test { public test() { } public static void main(String[] args) { test te...