Question: Write a method in the HashIntSet class called containsAll that accepts another hash set as a parameter and returns true if your set contains every
Write a method in the HashIntSet class called containsAll that accepts another hash set as a parameter and returns true if your set contains every element from the other set. For example, if the set stores [-2, 3, 5, 6, 8] and the method is passed [3, 6, 8], your method would return true. If the method were passed [3, 6, 7, 8], your method would return false because your set does not contain the value 7.
Step by Step Solution
3.42 Rating (158 Votes )
There are 3 Steps involved in it
public boolean containsAll HashIntSet ... View full answer
Get step-by-step solutions from verified subject matter experts
