Arrange the following options by arranging method names with the correct counterpart that matches the description.
The Queue interface
Method names
Report a typo
Match the items from left and right columns
offerFirst()
addLast()
addFirst()
pollFirst()
pollLast()
Retrieves and removes the first element
Inserts at the end
Retrieves and removes the last element
Inserts at the front without throwing exception
Inserts at the front
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.