Match the functions with their descriptions:
ArrayDeque
Match functions and results
Report a typo
Match the items from left and right columns
addFirst()
first()
addAll()
remove()
removeLast()
Removes the last element from the deque and returns that removed element
Adds all elements (collection) to the end and returns true
Returns the first element or throws NoSuchElementException if the deque is empty
Prepends the specified element to the collection
Removes a single instance of the specified element from the collection and returns true
___
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.