数组转化成list:asList,如:
String[] arr = new String[] {"1", "2"};
List list = Arrays.asList(arr);
list转换成数组,我们可以用list的toArray方法,
如:
List list = new ArrayList();
list.add("1");
list.add("2");
final int size = list.size();
String[] arr = (String[])list.toArray(new String[size]);