方式一
for(Iterator<String> it = list.iterator();it.hasNext();){
System.out.println(it.next());
}
方式二
Iterator<String> it2 = list.iterator();
while(it2.hasNext()){
System.out.println(it2.next());
}
方式一
for(Iterator<String> it = list.iterator();it.hasNext();){
System.out.println(it.next());
}
方式二
Iterator<String> it2 = list.iterator();
while(it2.hasNext()){
System.out.println(it2.next());
}