Java Utililty Methods Collection to Array

List of utility methods to do Collection to Array

Description

The list of methods to do Collection to Array are organized into topic(s).

Method

String[]toStringArray(final Collection c)
to String Array
final int length = c.size();
final String[] array = new String[length];
if (length > 0) {
    int i = 0;
    for (final String s : c) {
        array[i++] = s;
return array;