Merge 2 Arraylist<Int> in One ArrayList<int>


#1

I have two ArrayList<Int>

And i want a way to merge both of the ArrayList<Int> in 1 new ArrayList<Int>


#2

It’s as simple as:

 val arrayList3 = arrayList1 + arrayList2

#3

i solved it with
arraylist3.addAll(arraylist1)
arraylist3.addAll(arraylist2)
Thank you by the way :slight_smile: