August 28th, 2013, 02:51 PM
Stuck on IntegerSet class
I'm having trouble getting my code to work.
Scope of assignment: Two set of boolean array (e.g setA and setB). Union method checks to see if a number is in either of the arrays and returns true. Intersection method checks if the number is in both sets of array and returns true.
I also need to include an insert and delete method. This is where I'm having trouble. The IntegerSetTest file provided by the professor only accepts one argument so I'd have to write the insert method with one parameter. Doing it this way, it inserts a number into both of the arrays.
This is what my insert method looks like:
nevermind the code I had works. It was just something wrong with my for loop