Can you help me on how the methods should be implemented. I wanted to add an array to Set A and add values on that array. Then I'm going to pass those array to the union method. Thanks much.
Java api has some Set implementation[like HashSet,TreeSet] .there is also method called addAll for your union function. you dont need to implement your self.
what is MySet which in your code? you mean Test right?. apart from this if you want to implement Set data structure yourself. then you need to google much first
Firstly, we're not talking about the java.util.Set interface, I assume we're talking about an interface used for teaching.
To use an interface:
1) create a class that implements the interface
2) either write all of the methods or declare the Class abstract. You will almost always want to implement all of the methods.