本文共 380 字,大约阅读时间需要 1 分钟。
import java.util.ArrayList;import java.util.List;public class Test { public static void main(String[] args) { Listlist=new ArrayList (); list.add("a"); list.add("b"); list.add("c"); int size=list.size(); String[] array = (String[])list.toArray(new String[size]); for(int i=0;i
转载地址:http://lnzai.baihongyu.com/