Created
November 17, 2019 21:30
-
-
Save magdamiu/88897ec240f52defe16aa05386cde953 to your computer and use it in GitHub Desktop.
String interpolation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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