Created
August 1, 2016 12:42
-
-
Save fabiomsr/51048770dd89383778e99d7da1fa389f 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 text = x > 5 ? "x > 5" : "x <= 5" |
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 text = if (x > 5) | |
"x > 5" | |
else "x <= 5" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment