Is there any way to define static final variables (effectively constants) in a Java enum declaration?
What I want is to define in one place the string literal value
public enum MyEnum { BAR1(MyEnum.BAR_VALUE); public static final String BAR_VALUE = "Bar";
works fine