Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ArrayList, Iterator, and objects

807605Oct 7 2007 — edited Oct 8 2007
Hi all,
I got a couple questions regarding ArrayList, Iterator, and objects. How would you store the results of an SQL result set in an ArrayList using the setters and getters from an object (MyItems). This MyItems class has attributes that correspond directly to the items in the database (title, ISBN, author, etc). Basically, I need take the results from an SQL query, store it in an ArrayList, and spit it back out onto an HTML page but I cannot figure out the logic behind storing and extracting information from an ArrayList using an object. Sorry if my "lingo" isn't in Java speak but I wasn't taught in a structured environment, they basically threw us into the fire without any previous classes on these "advanced" Java topics and the Java API/tutorials really don't help = ( Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 5 2007
Added on Oct 7 2007
2 comments
131 views