title: Most convenient way to convert enumeration values to string array in Java
body: <p>This is about converting the enumeration values to a string array. I have an enumeration:</p>
  
  <pre><code>enum Weather {
      RAINY, SUNNY, STORMY
  }
  </code></pre>
  
  <p>And I want to convert this to a string array with minimal effort and no loops with Java 8+. This is the best I came up with:</p>
  
  <pre><code>Arrays.stream(Weather.values()).map(Enum::toString).toArray(String[]::new)
  </code></pre>
  
  <p>Any other and similarly or more convenient ways to do the same thing?</p>