title: How to store value of enum in arraylist?
body: <p>I have an <code>enum</code> like this:</p>
  
  <pre><code>public enum SomeEnum 
  {
      ENUM_VALUE1("Some value1"),
      ENUM_VALUE2("Some value2"),
      ENUM_VALUE3("Some value3");
  }
  </code></pre>
  
  <p>I need to store values of <code>enum</code> <strong>Some value1</strong>, <strong>Some value2</strong> and <strong>Some value3</strong> in an <code>ArrayList</code>.</p>
  
  <p>I can get all values in an array using <code>SomeEnum.values()</code> and iterate over that array and store the value in an <code>ArrayList</code> like this:</p>
  
  <pre><code>SomeEnum values[] = SomeEnum.values();
  ArrayList&lt;SomeEnum&gt; someEnumArrayList = new ArrayList&lt;SomeEnum&gt;();
  for(SomeEnum value:values) 
  {
      someEnumArrayList.add(value.getValue());
  }
  </code></pre>
  
  <p>Is there any other method like <code>values()</code> that returns array of <strong>Some value1</strong>, <strong>Some value2</strong> and <strong>Some value3</strong>?</p>