File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Jul 31, 2006
Jan 14, 2008 01:58:00
what are the tree ways of traversing a list...I know that you can use the for each loop, iterator. what's the other one. and the advantages/disadvantages of this methods of transversing a list
Joined: Oct 13, 2005
Jan 14, 2008 02:48:00
You can use an ordinary for loop, but the for-each loop is much neater.
Read the API documentation for the RandomAccess tagging interface to find out which is better.
I agree. Here's the link:
I have been to...
Favourite ice cream flavour ?
Scrabble... it only takes a minute...
Best Java IDE?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014