List集合迭代

集合声明以后,咱们通常能够调用Iterator iterator = list.iterator进行迭代。rem

我要说的是,个人坑,iterator一旦调用了remove方法,list中将会没有数据,it