Kotlin HashMap put()
Syntax & Examples
Syntax of HashMap.put()
The syntax of HashMap.put() function is:
fun put(key: K, value: V): V?
This put() function of HashMap associates the specified value with the specified key in the map.
The syntax of HashMap.put() function is:
fun put(key: K, value: V): V?
This put() function of HashMap associates the specified value with the specified key in the map.
Free DSA Visualizations
Beginner Friendly Explanations
Code Execution Flow
Interactive Player
Get Ready for Your Next Interview
ProgramGuru.org