📅  最后修改于: 2022-03-11 14:52:46.007000             🧑  作者: Mango
代码示例6
ArrayList list = new ArrayList<>(OtherList);
//it will copy all elements from OtherList to this one
//time complexity - O(n)