list string to array string java code example
Example 1: List of strings to array of strings java
String[]result=stringList.toArray(new String[0]);
Example 2: java string array to arraylist
new ArrayList( Arrays.asList( new String[]{"abc", "def"} ) );