List转换为Array:
ArrayList<String> list=new ArrayList<String>();
String[] strings = new String[list.size()];
list.toArray(strings);
数组转成List怎么办呢?如下:
String[] s = {"a","b","c"};List list = java.util.Arrays.asList(s);