title: Java how to access inner enum class
body: <pre><code>public class Constant {
  
    ......
  
    public enum Status {
      ERROR,
      WARNING,
      NORMAL
    }
  
    ......
  
  }
  </code></pre>
  
  <p>After compiling I got a class file named <strong>Constant$Status.class</strong>. The question is, how can I access the enum value. For instance, I want to get the string representation of the ERROR status.</p>