ok Dave, as i think, no one's answered your second question yet, so i
will suggest you some thing:

when you want to print or show the list as an out put, iterate the
list by a for-each loop and in each iteration check if the list
element is an instance of class MyOwnClass,if true then pass the
getName and getAddress methods to to the output (System.out or
JOptionPane) instead of the element itself.
i think this solves it, it worked with me, even in getting the list values.
if you need any further assistance, i will be glad to help.

wish you luck.

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to