In my Class IntegerSet i hav declared the below method but its not printing when i ran the test
public static IntegerSet union(IntegerSet setA, IntegerSet setB){
IntegerSet u = new IntegerSet();
for (int i=0;i <= CAPACITY; i++)
if (a[i]==true || setB.a[i]==true)
u.a[i]=true;
return u;
In Testing in main,
System.out.println("The union of setA and setB is: " + IntegerSet.union(setA, setB));
The test is provided, by my instructor, i need to make my Class(which i came up myself) print the test.
I am just wondering between the words union and u.