迭代器(Iterator)遍历的两种方法(for和while)
while循环遍历Collection coll = new ArrayList();coll.add("abc1");coll.add("abc2");coll.add("abc3");coll.add("abc4");Iterator it = coll.iterator();while(it.hasNext()){ System.out.pr