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