public class Constant {
......
public enum Status {
ERROR,
WARNING,
NORMAL
}
......
}
After compiling I got a class file named Constant$Status.class. The question is, how can I access the enum value. For instance, I want to get the string representation of the ERROR status.
Constant.Status status = Constant.Status.NORMAL;doesn't work ?