array list string to string java code example
Example 1: java list of strings to string
String string = list.stream().map(Object::toString).collect(Collectors.joining(""));
Example 2: arraylist string to string array
String[] arr = list.toArray(new String[list.size()]);