📌  相关文章
📜  如何在java代码示例中将集合转换为数组

📅  最后修改于: 2022-03-11 14:52:08.904000             🧑  作者: Mango

代码示例1
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.