variabel Kotlin dalam string
//Kotlin variable in string
//variables go in a ${} in a string, example
println("Happy ${age}th birdthday, ${name}!"
gradient
//Kotlin variable in string
//variables go in a ${} in a string, example
println("Happy ${age}th birdthday, ${name}!"
// Use the $ sign to get the variable value inside a string:
//Example 1:
println("$days days and $hours hours to go!")
//You can also use {} to contain expressions:
println("${days*24} hours to go!")
println("${myList}")