Kotlin program to get the string equivalent of the Triple

bookmark

fun main() {
    // creating a new instance of the Triple
    var numbers = Triple(10, 20, 30)

    // Printing the Triple in string format
    println("String representation is "+numbers.toString())    
}

 


Output:

String representation is (10, 20, 30)