Match the following methods and their purposes.
The Set interface
Match methods and their purposes
Report a typo
Match the items from left and right columns
set1.retainAll(set2)
set1.removeAll(set2)
set1.addAll(set2)
set1.containsAll(set2)
Intersection of sets
Difference of sets
Union of sets
Checking whether a set is subset
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.