Answers for "kotlin use variable in string"

1

kotlin variable in string

//Kotlin variable in string

//variables go in a ${} in a string, example
println("Happy ${age}th birdthday, ${name}!"
Posted by: Guest on October-08-2020
3

how to define variable in kotlin

val firstName: String = "Chike"
val variable name: Typeofthevariable = TheValueofyourvariable
Posted by: Guest on April-15-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language