KotlinSyntax
String Template
Code example
"Hi $name, total ${a + b}"Inserts values into a string.
In Kotlin, string template: inserts values into a string — "Hi $name, total ${a + b}"
"Hi $name, total ${a + b}""Hi $name, total ${a + b}"Inserts values into a string.
Use "Hi $name, total ${a + b}".
Use this pattern: "Hi $name, total ${a + b}"
Yes. Use Copy code and adapt the example to your program.
No. The language syntax is the same across operating systems.