array list return string rray 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()]);
String[]result=stringList.toArray(new String[0]);
String[] arr = list.toArray(new String[list.size()]);