Match functions and results

Report a typo

Match the functions with their descriptions:

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
___

Create a free account to access the full topic