This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Java in General and the fly likes loop through arraylist of arrays Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "loop through arraylist of arrays" Watch "loop through arraylist of arrays" New topic
Author

loop through arraylist of arrays

J Brewer
Ranch Hand

Joined: Jul 10, 2006
Posts: 46
I just can't seem to get my head around how to iterate through an arraylist of arrays.

I get as far as, for example:
details - arraylist of object Details that has a field named Data, which is also an arraylist. Data stored arrays in the arraylist.
count - an outer loop i'm using to iterate through all details arraylists.


for (int i=0; i < details.get(count-1).getData().size(); i++){




this is as far as i get. Any suggestions?


Thanks,
 
Consider Paul's rocket mass heater.
 
subject: loop through arraylist of arrays
 
Similar Threads
speed up data saving
Huge data, problem iterating resultset
Records in Arraylist
loop through arraylist of arrays
Iterate through multiple arrays