Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public enum Gender {
FEMALE("F"),
MALE("M"),
NOT_AVAILABLE("N");
private final String code;
Gender(String code) {
this.code = code;
}
public String getCode() {
return code;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment