Last active
August 1, 2016 17:42
-
-
Save fabiomsr/58ac5e034c425e96f627533c1c54325a 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(a instanceof String){ | |
final String result = ((String) a).substring(1); | |
} |
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 (a is String) { | |
val result = a.substring(1) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment