//方法一
for(Iterator iterator = list.iterator();iterator.hasNext();){
int value = (Integer) iterator.next();
----System.out.println(value)---;
}
//方法二
Iterator iterator = list.iterator();
while(iterator.hasNext()){
int value = (Integer) iterator.next();
-----System.out.println(value)----;
}
//方法三 这种方法很简遍
for (Object object : list) {
----System.out.println(object)--;
}
//方法四
for (int i = 0 ;i<list.size();i++) {
int value= (Integer) list.get(i);
----System.out.println(value)--;
}
for(Iterator iterator = list.iterator();iterator.hasNext();){
int value = (Integer) iterator.next();
----System.out.println(value)---;
}
//方法二
Iterator iterator = list.iterator();
while(iterator.hasNext()){
int value = (Integer) iterator.next();
-----System.out.println(value)----;
}
//方法三 这种方法很简遍
for (Object object : list) {
----System.out.println(object)--;
}
//方法四
for (int i = 0 ;i<list.size();i++) {
int value= (Integer) list.get(i);
----System.out.println(value)--;
}