Kotlin HashMap get()
Syntax & Examples


Syntax of HashMap.get()

The syntax of HashMap.get() function is:

operator fun get(key: K): V?

This get() function of HashMap returns the value corresponding to the given key, or null if such a key is not present in the map.