Last active
August 1, 2016 12:10
-
-
Save fabiomsr/abbe95e3cb6be4be98d2c9f660a0943b to your computer and use it in GitHub Desktop.
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
// Java | |
String name = "John"; | |
String lastName = "Smith"; | |
String text = "My name is: " + name + " " + lastName; | |
String otherText = "My name is: " + name.substring(2); |
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
// Kotlin | |
val name = "John" | |
val lastName = "Smith" | |
val text = "My name is: $name $lastName" | |
val otherText = "My name is: ${name.substring(2)}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment