Java Array From toArray(E[] o)

Here you can find the source of toArray(E[] o)

Description

to Array

License

Open Source License

Declaration

public static <E extends Enum<?>> String[] toArray(E[] o) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static <E extends Enum<?>> String[] toArray(E[] o) {
        String[] output = new String[o.length];
        for (int i = 0; i < output.length; i++)
            output[i] = o[i].name();/* w w w . j ava  2s  . com*/
        return output;
    }
}

Related

  1. arrayFromString(String str)
  2. toArray(boolean[] array)
  3. toArray(CharSequence input)
  4. toArray(Class interfaceClass)
  5. toArray(Double[] array)
  6. toArray(final double d)
  7. toArray(final int ip)
  8. ToArray(final Object... toSmashIntoArray)
  9. toArray(final String[] strings)