方法二:
List<String> list = new ArrayList<String>();
list.add("a1");
list.add("a2");
String[] toBeStored = new String[al.size()];
list.toArray(toBeStored);
for (String s : toBeStored) {
System.out.println(s);
}
方法三:
String str[] = list.toArray(new String[0]); //java文档中的推荐写法
方法四:
Long [] l = new Long[list.size()];
for(int i=0;i<list.size();i++)
l[i] = (Long) list.get(i);
2、数组转换成List
String str[] =??;
bfList = Arrays.asList(str);