List<String> to array java code example
Example 1: java String[] to List
import java.util.*;
...
String[] strings = {"Lula", "José Aparecido", "Carlos Minc"};
List<String> list = Arrays.asList(strings);
Example 2: List of strings to array of strings java
String[]result=stringList.toArray(new String[0]);