iterator and for loop
Hello
For going through a collection as a List, I can use Iterator and for loop as the following:
for (int i=0; i<myList.size(); i++){
...
}
OR
Iterator i = myList.iterator();
while(i.hasNext()){
...
}
Which way is better and why
Thanks for any help
sh>

