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