string arraylist to array 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"} ) );
String[] arr = list.toArray(new String[list.size()]);
new ArrayList( Arrays.asList( new String[]{"abc", "def"} ) );