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