How to solve using Arraylist class in java !? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson

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.

11th Apr 2018, 1:51 PM
Zainab  - avatar
1 Answer
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.
11th Apr 2018, 7:56 PM
Roberto Guisarre
Roberto Guisarre - avatar