posted 14 years ago
Hi,
I would like to know if there is any way in which I could iterate through an arraylist/ any collection that contains user defined objects.
All the examples I have seen so far show me how I can add strings to a collection and print them out. But that's not exactly what I have in mind.
I am working on implementing the following functionality:
There is a method that essentially adds some user-defined objects, that contain some user info, to a collection. This collection is then passed to another method that reads the content of the objects it has received, fetches one of the values in the object: email address and then calls the sendEmail function that is already in place.
I need to figure out how I can parse the content of the objects and retrieve specific data from them.
Any help would be appreciated!
Thanks a lot!
Cheers,
Divya