array of string s to list of string s in java 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]);