Question: / * * * Indicates whether this set contains all of the elements in * the collection. If the collection is empty, this returns true.
Indicates whether this set contains all of the elements in
the collection. If the collection is empty, this returns true.
@param items a collection of objects to be checked for containment in this set
@return true if all items are contained in this set
public boolean containsAllCollection items
for E item : items
if itemequalsitems
return true;
return false;
Above is my code on this section, but somehow it appear an error, and can anyone help me on this?
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
