标签:算法 android arraylist string
1、List->Array
调用List的toArray方法
List<String> list = new ArrayList<String>(); list.add("1"); list.add("2"); list.add("3"); String[] strings = list.toArray(new String[list.size()]);
调用Array的asList方法
String[] strings = {"1","2","3","4"}; List<String> list = Arrays.asList(strings);
标签:算法 android arraylist string
原文地址:http://blog.csdn.net/eclipsexys/article/details/39696639