Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

/ * * * 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 containsAll(Collection items){
for (E item : items){
if (item.equals(items)){
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What are the types of forms of communication ?

Answered: 1 week ago

Question

Explain the process of MBO

Answered: 1 week ago