代码:
private Object[] ListToObject(List<String> list){ Object [] tem = new Object[]{}; int size = list.size(); String[] arr = new String[size]; tem = list.toArray(arr);//将转化后的数组放入已经创建好的对象中 return tem; }
查看原文