Last active
June 27, 2018 23:01
-
-
Save davidmerrick/e5d1b4865e7361029cfa6de6408a8884 to your computer and use it in GitHub Desktop.
enum example
This file contains hidden or 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
public enum MyEnum { | |
GOOD("GOOD"); | |
private String value; | |
public enum MyEnum(String value){ | |
this.value = value; | |
} | |
@Override | |
public String toString(){ | |
return value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment