code: public static <T extends Enum<T>> String[] enumNameToStringArray(T[] values) {
  
          int i = 0;
          String[] result = new String[values.length];
          for (T value : values) {
              result[i++] = value.name();
          }
          return result;
      }
docs: Returns a String array representation for the given enum.<p>
  
  @param <T> the type of the enum
  @param values the enum values
  
  @return the representing String array