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