the exercise says:
  a.. Create your own NetBeans project named as MyTreeSet

  b.. Create your own TreeSet object with initial capacity of 5 //don't exist a 
constructor with this parameter

  c.. Add the following objects to the newly created TreeSet object

    a.. 2 String objects

    b.. 2 MyOwnClass object (You will have to create MyOwnClass.java 
first)//how I create this class?, I have implemented Comparable interfaz, but I 
am not sure

    c.. 3 Integer ojbects
  d.. Create Iterator object from the TreeSet object and iterate them to get 
displayed

this is MyOwnClass:

package mytreeset;

import java.lang.Comparable;

public class MyOwnClass implements Comparable<MyOwnClass> {
    
    public int compareTo(MyOwnClass o){
        return 0;
        
    }
}

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