Here you can find the source of toStringArray(List
public static String[] toStringArray(List<Object> objList)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { public static String[] toStringArray(List<Object> objList) { String ret[] = new String[objList.size()]; for (int i = 0; i < objList.size(); i++) ret[i] = objList.get(i).toString(); return ret; }/*w w w. j a va 2 s . c o m*/ }