create string arraylist from string java code example
Example 1: arraylist string to string array
String[] arr = list.toArray(new String[list.size()]);
Example 2: java string array to arraylist
new ArrayList( Arrays.asList( new String[]{"abc", "def"} ) );