This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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

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: 9404

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
I agree. Here's the link:
subject: s:iterator problem...
It's not a secret anymore!