Skip to content

Instantly share code, notes, and snippets.

@magdamiu
Created November 17, 2019 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magdamiu/88897ec240f52defe16aa05386cde953 to your computer and use it in GitHub Desktop.
Save magdamiu/88897ec240f52defe16aa05386cde953 to your computer and use it in GitHub Desktop.
String interpolation
val firstWord = "Learn "
val secondWord = "Kotlin"
var bothWords = "$firstWord $secondWord"
println("$bothWords has ${bothWords.length}")
println(""""$bothWords" has ${bothWords.length}""")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment