Java tutorial
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { public static String[] toStringArray(List<String> input) { String[] retarr = new String[input.size()]; for (int i = 0; i < input.size(); i++) { retarr[i] = input.get(i); } return retarr; } }