List 转换为 String数组
List<String> list = new ArrayList<String>();
list.add("a1");
list.add("a2");
String[] toBeStored = list.toArray(new String[list.size()]);
for(String s : toBeStored) {
System.out.println(s);
}
String 数组转换为 List
<span style="font-size:18px;"> String[] arr = new String[] {"1", "2"};
List list = Arrays.asList(arr); </span>