集合聲明以後,咱們通常能夠調用Iterator iterator = list.iterator進行迭代。rem
我要說的是,個人坑,iterator一旦調用了remove方法,list中將會沒有數據,it