Kotlin HashMap size
Syntax & Examples


Syntax of HashMap.size

The syntax of HashMap.size property is:

val size: Int

This size property of HashMap returns the number of key/value pairs in the map.