Java tutorial
//package com.java2s; import java.util.ArrayList; public class Main { public static String[] toStringArray(ArrayList<String> array) { String arr[] = new String[array.size()]; for (int i = 0; i < array.size(); i++) { arr[i] = array.get(i); } return arr; } }