Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

kotlin variable in string

//Kotlin variable in string

//variables go in a ${} in a string, example
println("Happy ${age}th birdthday, ${name}!"
 
PREVIOUS NEXT
Tagged: #kotlin #variable #string
ADD COMMENT
Topic
Name
7+8 =