📅  最后修改于: 2022-03-11 14:52:08.904000             🧑  作者: Mango
List list = new ArrayList(); // Original list
String[] arr = list.toArray(new String[list.size()]); // toArray function with array to be populated by this list as an argument.