How can I create a simple enum in Java including only one String attribute and get() and set() method ?
something like this
public enum myenum {
private String text;
public String getTest() {
return this.text;
}
I'm getting Error exception "Syntaxc error on token string ... please see the attachment
Thansk
}
Start Free Trial