Question: Code uses one set named storeA to store product code as strings from store A and a second set named storeB to store product codes
Code uses one set named storeA to store product code as strings from store A and a second set named storeB to store product codes as strings from store B Which set method would be called to generate the group of product codes that are found in both stores?
HashSetset new HashSetstoreA;
setstoreB;
Group of answer choices
retainAll
addAll
removeAll
add
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
