convert arraylist to string array in javascript code example Example: arraylist string to string array String[] arr = list.toArray(new String[list.size()]);