What\'s the easiest and/or shortest way possible to get the names of enum elements as an array of Strings?
String
What I mean by this is that if, for example,
Another way to do it in Java 7 or earlier would be to use Guava:
public static String[] names() { return FluentIterable.from(values()).transform(Enum::name).toArray(String.class); }