How might I convert an ArrayList object to a String[] array in Java?
ArrayList
String[]
ArrayList arrayList = new ArrayList(); Object[] objectList = arrayList.toArray(); String[] stringArray = Arrays.copyOf(objectList,objectList.length,String[].class);
Using copyOf, ArrayList to arrays might be done also.