标签:style blog color ar java for sp div log
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); }
List 转换为 String数组
String[] arr = new String[] {"1", "2"}; List list = Arrays.asList(arr);
String数组转List,List转String数组
原文地址:http://www.cnblogs.com/geminer/p/4067183.html