toString

override fun toString(): String

Returns the string representation of this number.


Calling from Kotlin

Here's an example of calling this function from Kotlin code:

val message: String = Zero()
.toString()
println(message) // 0

Calling from Java

Here's an example of calling this function from Java code:

final Zero zero = new Zero();
final String message = zero.toString();
System.out.println(message); // 0