Here you can find the source of toStringArray(List
public static String[] toStringArray(List<String> array)
//package com.java2s; //License from project: Apache License import java.util.List; public class Main { public static String[] toStringArray(List<String> array) { return array.toArray(new String[] {}); }//from w ww. j av a2 s . c om public static String[] toStringArray(String... strings) { return strings; } }