Here you can find the source of getArray(Collection dnaCol)
private static String[] getArray(Collection dnaCol)
//package com.java2s; import java.util.*; public class Main { private static String[] getArray(Collection dnaCol) { return (String[]) dnaCol.toArray(new String[0]); }//from w w w .java2 s . c o m }