List to String array

 String[] words = {"ace", "boom", "crew", "dog", "eon"};
  List<String> wordList = Arrays.asList(words);

 

List<String> list=new ArrayList<String>();   
list.add("王利虎"); 
list.add("张三"); 
list.add("李四"); 
int size=list.size(); 
String[] array = (String[])list.toArray(new String[size]); 

你可能感兴趣的:(String)