**New course!**Every coder should learn

**Generative AI!**

0

# How to solve using Arraylist class in java !?

8) Instance method subSet that accepts a parameter aSet of type Set. If aSet is a subset of “this object”, it will return true, else it will return false. Ex: Let A and B be two sets; A = {7, 4, 20, 15, 12}, B = {12, 15}. As all elements of B are contained in A, therefore, B is a subset of A.

1 Answer

0

Collection properties are straightforward, just look for the property that let's you find out if one set "contains" the values of the other, that should be it for your practice. Good luck.