Creates a <code>String[]</code> by calling the toString() method of each object in a list.

@deprecated  Please use List.toArray(Object[])

@see  List#toArray(Object[])
1224
@Deprecated
	public static String[] getStringArray(List<?> V) {
		if(V==null) return null;
		int len = V.size();
		String[] SA = new String[len];
		for (int c = 0; c < len; c++) {
			Object O=V.get(c);
			SA[c]=O==null?null:O.toString();
		}
		return SA;
	}
763762
public static String[] toStringArray(final Enumeration<String> enumeration) {
    return StringUtils.toStringArray(Collections.list(enumeration));
  }
1097524
public String format(Object... array) {
    if (array == null) {
      return StringUtils.EMPTY;
    }
    if (array.length == 1 && array[0].getClass().isArray()) {
      return format(Convert.convert(array[0], Iterable.class));
    }
    return format(Arrays.asList(array).iterator());
  }
1082801
@SuppressWarnings({"SuspiciousToArrayCall"})
  public <T> T[] toArray(T[] o) {
    Iterator<E> iter = iterator();
    ArrayList<E> al = new ArrayList<E>();
    while (iter.hasNext()) {
      al.add(iter.next());
    }
    return al.toArray(o);
  }
194779
public static List<String> toList(String[] input) {
        List<String> ret = new ArrayList<>();
        for (int i = 0; i < input.length; i++)
            ret.add(input[i]);
        return ret;
    }
1287292
public static <T, J extends Convertable<T>> T[] convertToArray(J[] array, Class<T> clazz) {
        return toArray(convert(array), clazz);
    }
842184
@NonNull
    public static String[] nonNullArrayOfStrings(@Nullable List<String> list) {
        return list == null || list.isEmpty()
                ? new String[]{}
                : list.toArray(new String[list.size()]);
    }
1215029
public static <T> List<T> arrayToList(T[] array) {
        List<T> list = null;
        if (array != null) {
            list = new ArrayList<>();
            for (T e : array) {
                list.add(e);
            }
        }
        return list;
    }
60983
public static String[] buildStringArray(Object... objects) {
        return JMOptional.getOptional(objects).map(Arrays::stream)
                .map(stream -> stream.map(Object::toString)
                        .collect(Collectors.toList())
                        .toArray(new String[objects.length]))
                .orElseGet(JMArrays::getEmptyStringArray);
    }
1368715
public static JsonArray array(String... strings) {
    if (strings == null) {
      throw new NullPointerException("values is null");
    }
    JsonArray array = new JsonArray();
    for (String value : strings) {
      array.add(value);
    }
    return array;
  }
706175
@Override
	public Object[] toArray() {
		Object[] result = new Object[size];
		for(int c=0;c<size;c++) result[c] = elementData[c];
		return result;
	}
1213020
public static <T> List<T> arrayToList(T [] array) {
        return new ArrayList<T>(Arrays.asList(array));
    }
387107
public R toStringArray(@Nullable Iterable<String> values) {
    return handle(Value.stringArray(values));
  }
408392
public static String[] toArray(Collection<String> stringCollection) {
        return JMOptional.getOptional(stringCollection).map(Collection::size)
                .map(String[]::new).map(stringCollection::toArray)
                .orElseGet(JMArrays::getEmptyStringArray);
    }
924363
public static String[] toStringArray(Array array, String defaultValue) {
	String[] arr = new String[array.size()];
	for (int i = 0; i < arr.length; i++) {
	    arr[i] = Caster.toString(array.get(i + 1, defaultValue), defaultValue);
	}

	return arr;
    }
292257
public static <T> T[] toArray(List<T> list) {
    return toArray(getClass(list.get(0)), list);
  }
1158385
public Object toArray() {
		if (listeners == EMPTY_OBJECT_ARRAY)
			return Array.newInstance(listenerClass, 0);

		Object[] listenersCopy = listeners;
		Object copy = Array.newInstance(listenerClass, listenersCopy.length);
		System.arraycopy(listenersCopy, 0, copy, 0, listenersCopy.length);
		return copy;
	}