标签:blog java os ar div log new ad
public static void main(String[] args){ List<Integer> list = new ArrayList<Integer>(); list.add(1); list.add(2); list.add(3); list.add(4); list.add(5); Iterator<Integer> interator = list.iterator(); while(interator.hasNext()){ Integer i = interator.next(); if(i==3){ interator.remove(); } System.out.println(i); } System.out.println(Arrays.toString(list.toArray())); }
标签:blog java os ar div log new ad
原文地址:http://www.cnblogs.com/haitao-fan/p/3915619.html