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