Last active
August 1, 2016 17:50
-
-
Save fabiomsr/711fc44bd6c7f89f1c492b2ad2795b48 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 | |
if(x instanceof Integer){ } | |
final String text = (String) other; | |
if(x >= 0 && x <= 10 ){} |
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 | |
if (x is Int) { } | |
val text = other as String | |
if (x in 0..10) { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment