The conversion from list to array can be handled as follows:
ArrayList & lt string & gtlist = new ArrayList & lt string & gt ();
String[]strings = new String[list . size()];
List.toArray (string);
Conversely, what if you want to convert an array into a list? As follows:
String[] s = {"a "," b "," c " };
list list = Java . util . arrays . aslist(s);