InterviewSolution
Saved Bookmarks
| 1. |
Which Method Is Used Add An Element And Corresponding Key To A Map? |
|
Answer» Maps revolve around TWO basic OPERATIONS – get() and PUT(). to put a VALUE into a map, USE put(), specifying the key and the value. To obtain a value, call get() , passing the key as an argument. The value is returned. Maps revolve around two basic operations – get() and put(). to put a value into a map, use put(), specifying the key and the value. To obtain a value, call get() , passing the key as an argument. The value is returned. |
|