title: Getting String value from enum in Java
body: <p>I have a enum defined like this and I would like to be able to obtain the strings for the individual statuses. How should I write such a method?</p>
  
  <p>I can get the int values of the statuses but would like the option of getting the string values from the ints as well.</p>
  
  <pre><code>public enum Status {
      PAUSE(0),
      START(1),
      STOP(2);
  
      private final int value;
  
      private Status(int value) {
          this.value = value
      }
  
      public int getValue() {
          return value;
      }
  }
  </code></pre>