Assignment: #MySet Due: 03/25/2017 Points: 5

Specification

Copy the program MySet.java and implement the methods that have "TBI (To Be Implemented)" in their respective method comment blocks.

A bullet-list of notes.

Note: A future assignment might require making modifications to this program.

The output of your program must match the following. The already coded main() method should not need any modifications

205 added (1)
Java supports OOP added (2)
true added (3)
42 added (4)
240 added (5)
42 not added b/c it's a duplicate
foo added (6)
true not added b/c it's a duplicate
foo not added b/c it's a duplicate
Java creator: James Gosling added (7)
240 not added b/c test is full
3.14159265 not added b/c test is full
java.lang.Object@6bc7c054 not added b/c test is full
{205, Java supports OOP, true, 42, 240, foo, Java creator: James Gosling}
...isEmpty(): false; isFull(): true; size(): 7; capacity(): 7
test cleared: {}
...isEmpty(): true; isFull(): false; size(): 0; capacity(): 7

=========================
A: {5, 7, 3, 2}
B: {2, 6}
C: {1, 2, 5}
D: {3, 2, 7, 5}
E: {5, 2, 1}
{5, 7, 3, 2}.equals({2, 6}) is false
{1, 2, 5}.equals({3, 2, 7, 5}) is false
{1, 2, 5}.equals({5, 2, 1}) is true
{5, 7, 3, 2}.union({2, 6}): {5, 7, 3, 2, 6}
{5, 7, 3, 2}.intersection({2, 6}): {2}
{5, 7, 3, 2}.difference({2, 6}): {5, 7, 3}
{2, 6}.difference({5, 7, 3, 2}): {6}
{1, 2, 5}.union({3, 2, 7, 5}): {1, 2, 5, 3, 7}
{1, 2, 5}.intersection({3, 2, 7, 5}): {2, 5}
{1, 2, 5}.difference({3, 2, 7, 5}): {1}
{3, 2, 7, 5}.difference({1, 2, 5}): {3, 7}
{1, 2, 5}.difference({5, 2, 1}): {}
{5, 7, 3, 2}.union({5, 7, 3, 2}): {5, 7, 3, 2}
{5, 7, 3, 2}.intersection({5, 7, 3, 2}): {5, 7, 3, 2}
{5, 7, 3, 2}.difference({5, 7, 3, 2}): {}
{5, 7, 3, 2}.remove(7): {5, 3, 2}
{}.union({}): {}
{}.intersection({}): {}
{}.difference({}): {}
{}.union({5, 3, 2}): {5, 3, 2}
{}.intersection({5, 3, 2}): {}
{}.difference({5, 3, 2}): {}
{5, 3, 2}.union({}): {5, 3, 2}
{5, 3, 2}.intersection({}): {}
{5, 3, 2}.difference({}): {5, 3, 2}