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
tagging interface to find out which is better.
rocket mass heater
Favourite ice cream flavour ?
Best Java IDE?
I have been to...
Scrabble... it only takes a minute...
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013