java list string to string array code example
Example 1: arraylist string to string array
String[] arr = list.toArray(new String[list.size()]);
Example 2: list of string to string array in java
list.toArray(new String[0]);
String[] arr = list.toArray(new String[list.size()]);
list.toArray(new String[0]);