1. Define a method equals for the class BagOfStrings that tests whether two bags have exactly the same contents.
2. Suppose the class SetOfStrings defines the set you specified. Consider an object of SetOfStrings representing an empty set and an object of the class BagOfStrings that contains several strings. Write statements at the client level that create a set from the given bag.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here