How might I convert an ArrayList object to a String[] array in Java?
ArrayList
String[]
An alternative in Java 8:
String[] strings = list.stream().toArray(String[]::new);
Java 11+:
String[] strings = list.toArray(String[]::new);