Home arrow static arrow Java Programming [Archive] - to traverse the object in arraylist
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - to traverse the object in arraylist
This topic has 1 reply on 1 page.

Posts:3
Registered: 7/21/04
to traverse the object in arraylist  
Jul 21, 2004 8:44 PM



 
i need to traverse the object that contain resultsetObject(having on row) .,the object is in turn stored in the arraylist
 

Posts:24,036
Registered: 2/3/03
Re: to traverse the object in arraylist  
Jul 21, 2004 8:51 PM (reply 1 of 1)



 
i need to traverse the object that contain
resultsetObject(having on row) .,the object is in turn
stored in the arraylist

Your question is tough to follow. It sounds like you have a List of ResultSet objects, which is a little creepy. Better to iterate through the ResultSet and add objects to a List (which may be what you're asking for, but it's hard to tell).
while (resultSet.next()) {    // assemble object from resultSet    // store object in Collection, Map, etc.}
 
This topic has 1 reply on 1 page.