Three kinds of traversal
A, for circulation
二、for each
Three, Iterator traversal
Iterator it = list.iterator();
while(it.hasNext()){
syso(it.next());
}
Generally used for general circulation, time-consuming short
Three kinds of traversal
A, for circulation
二、for each
Three, Iterator traversal
Iterator it = list.iterator();
while(it.hasNext()){
syso(it.next());
}
Generally used for general circulation, time-consuming short