title: How to declare field inside Enum in Java?
body: <p>I want to declare static(or not static) variable inside Enum. I need this because I want to associate enum values with some strings. But i Don't want to hardcode this strings. I want to use my application-wide class with String constants.
  I.e. I want to write like this inside <code>enum</code> declaraton, but there compile time error: </p>
  
  <pre><code>public enum MyEnum {   
          private static final AppConstants CONSTANTS = AppConstants.getInstance();
  
          ONE(CONSTANTS.one()),
          TWO(CONSTANTS.two());
  }
  </code></pre>
  
  <p>How I can put in enum a field? </p>