Guys any idea how to implement the said code...
Implement the IMultiSet interface below into MultiSet class
public class IMultiSet{
// add x to this multiset (x must be 0-9)
void add(int x);
// remove x from this multiset if there are occurrences of element x (x must be 0-9)
void remove(int x);
// return another multiset containing the sum of this multiset and S
public IMultiSet sum(IMultiSet S);
// return another multiset containing the intersection of this multiset and S
public IMultiSet intersection(IMultiSet S);
// return another multiset containing the difference of this multiset and S
public IMultiSet difference(IMultiSet S);
}
Note: Override the toString
// return the string equivalent of this multiset in format {x:a, y:b, z:c }