Hi:
 
I am placing this toString method in the MyClassObject class or in the Main 
method to 
override?
 

->  
> I am not too sure I have followed the instructions:
>  
> I created the following:
> MyClassObject classObj1 = new MyClassObject("Eleven", 11);
You don't need this
but you need:

myhashset.add(new MyClassObject("Eleven", 11));

Then you need some getters and setters in MyClassObject and to
override the toString method of MyClassObject so that you can get a
user-friendly output when printing the HashSet.




      
--~--~---------~--~----~------------~-------~--~----~
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