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