Build your intuition. Click the correct answer from the options.
What is the purpose of the put method in a HashMap?
Click the option that best answers the question.
- To add elements to the HashMap
- To retrieve elements from the HashMap
- To remove elements from the HashMap
- To check if an element exists in the HashMap


