Skip to content

Instantly share code, notes, and snippets.

@PatilShreyas

PatilShreyas/StringTempl1.kt.diff Secret

Last active Dec 29, 2020
Embed
What would you like to do?
fun main() {
doGreet("John Doe")
}
fun doGreet(name: String) {
- val greetMessage = "Good Morning " + name + " 🌅"
+ val greetMessage = "Good Morning $name 🌅"
println(greetMessage) // prints "Good Morning John Doe 🌅"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment