📜  在java代码示例中将arraylist转换为array

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

代码示例4
ArrayList list = new ArrayList<>(OtherList);
//it will copy all elements from OtherList to this one
//time complexity - O(n)