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 actual: String = Zero()
.toString()
val expected = "0"
assertEquals(expected, actual)

Calling from Java

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

final Zero zero = new Zero();
final String actual = zero.toString();
final String expected = "0";
Assertions.assertEquals(expected, actual);