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,
With java 8:
Arrays.stream(MyEnum.values()).map(Enum::name) .collect(Collectors.toList()).toArray();