How do I convert a list of String into an array? The following code returns an error.
public static void main(String[] args) { List strlist
hope this can help someone out there:
List list = ..;
String [] stringArray = list.toArray(new String[list.size()]);
great answer from here: https://stackoverflow.com/a/4042464/1547266