ArrayList, Iterator, and objects
807605Oct 7 2007 — edited Oct 8 2007Hi 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!