Question: Write a method in the HashIntSet class called addAll that accepts another hash set as a parameter and adds all of the elements from the
Write a method in the HashIntSet class called addAll that accepts another hash set as a parameter and adds all of the elements from the other set into the current set. For example, if the set stores [-5, 1, 2, 3] and the method is passed [2, 3, 6, 44, 79], your set would store [-5, 1, 2, 3, 6, 44, 79].
Step by Step Solution
3.40 Rating (159 Votes )
There are 3 Steps involved in it
public void addAll HashIntSet ... View full answer
Get step-by-step solutions from verified subject matter experts
