Match methods and their descriptions.
Introduction to collections
Methods
Report a typo
Match the items from left and right columns
remove(element)
isEmpty()
contains(element)
clear()
delete an element from the collection
checks if the element is in your collection.
removes all elements from the collection
check if the collection has any item
___
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.