Created
October 22, 2016 10:59
-
-
Save kleinron/a119f7589eb89544b5b8f9c06753dfec to your computer and use it in GitHub Desktop.
enum example - using
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
MyColors x = getColor(); | |
if (x == MyColors.Green) { | |
doSomething(); | |
} else { | |
doSomethingElse(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment