List list = new ArrayList(); list.add("a"); list.add("b"); final int size = list.size(); String[] str = (String[])list.toArray(new String[size]); for (int i = 0; i < str.length; i++) { System.out.println(str[i]); }
原文:http://www.cnblogs.com/sflik/p/4490869.html