List转 数组
List list = new ArrayList();
list.add("1");list.add("2");
final int size = list.size();
String[] arr = (String[])list.toArray(new String[size]);
数组转LIst
String[] arr = new String[] {"1", "2"};
List list = Arrays.asList(arr);
List转 数组
List list = new ArrayList();
list.add("1");String[] arr = (String[])list.toArray(new String[size]);
数组转LIst
String[] arr = new String[] {"1", "2"};
List list = Arrays.asList(arr);