How I can add new as a value to an enum in Java?
Here's my enum:
public enum AgentProspectStatus
{
loose("loose"),
on_progress("on_progress"),
reached("reached"),
alumni("alumni"),
student("student"),
new("new"); // This throws an error
private String code;
AgentProspectStatus(String code)
{
this.code = code;
}
}
The new("new") line is showing the error:
Unexpected Token
newbie("new")