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.