title: How to get Enum Value from index in Java?
body: <p>I have an enum in Java:</p>
  
  <pre><code>public enum Months
  {
      JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC
  }
  </code></pre>
  
  <p>I want to access enum values by index, e.g.</p>
  
  <pre><code>Months(1) = JAN;
  Months(2) = FEB;
  ...
  </code></pre>
  
  <p>How shall I do that?</p>