File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "loop through arraylist of arrays" Watch "loop through arraylist of arrays" New topic

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?

I agree. Here's the link:
subject: loop through arraylist of arrays
It's not a secret anymore!