Hi,

I have a problem to display MyOwnClass objects.
Set myhs=new HashSet();
        String msg = new String();
        myhs.add(new String    ("Rafał"));
        myhs.add(new String    ("Edyta"));
        myhs.add(new MyOwnClass("Ewelinka", 9));
        myhs.add(new MyOwnClass("Ola", 16));
        myhs.add(new Integer   (5));
        myhs.add(new Integer   (6));
        myhs.add(new Integer   (7));
  
  for (Iterator iter = myhs.iterator(); iter.hasNext(); ){
      System.out.println(msg+" HashSet: "+iter.next()+"\n");
        }

Please help!

Best regards,
Rafał Laczek

----------------------------------------------------
Hospicja w całej Polsce pomagają osobom umierającym i ich bliskim.
Ty też możesz pomóc. 
Przekaż 1% podatku Fundacji Hospicyjnej (KRS 0000201002).
http://klik.wp.pl/?adr=www.httz.pl&sid=685



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

Reply via email to