A user wants to retrieve a value associated with a key from the HashMap and receive -1 if the key is not found. Which of the following methods is best for the task?
Introduction to HashMap
Finding Function
Report a typo
Select one option from the list
___
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.