Kotlin HashMap toString()
Syntax & Examples


Syntax of HashMap.toString()

The syntax of HashMap.toString() function is:

fun toString(): String

This toString() function of HashMap returns a string representation of the object.