extends:http://www.cnblogs.com/dolphin0520/p/3933551.html
Iterator<Integer> iterator = list.iterator(); while(iterator.hasNext()){ Integer integer = iterator.next(); if(integer==2) iterator.remove(); }
时间: 2024-11-13 16:26:57
extends:http://www.cnblogs.com/dolphin0520/p/3933551.html
Iterator<Integer> iterator = list.iterator(); while(iterator.hasNext()){ Integer integer = iterator.next(); if(integer==2) iterator.remove(); }