1Iterator itr=list.iterator();
2while(itr.hasNext)
3{
4 system.out.println(itr.next);
5}
1Iterator<String[]> iterator = myEntries.iterator();
2while(itr.hasNext())
3 for(String temp : itr.next())
4 // Don't worry, itr.next() will be created only one time
5 // for an each iteration (while)
6 System.out.println(temp);
7