This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Struts and the fly likes s:iterator problem... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "s:iterator problem..." Watch "s:iterator problem..." New topic

s:iterator problem...

Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
I have 5 ArrayLists and I want to populate the values of arraylist in rows of 5 column table depending on size of AL

This is the code...

I want to print the 1st values of 5 AL in 1st row,2nd value of 5 AL in 2nd row and so on...

However the above code is a hash

what should be the correction?
Ankit Garg

Joined: Aug 03, 2008
Posts: 9327

I cannot understand your code, but if you want to iterate over 5 lists simultaneously, then you can do it like this

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: s:iterator problem...