I have two Arrays/ArrayLists of Integer. I want to know the optmized way to find duplicates from two and store into the third one.
Array1 = {1,2,3,6,9,10,15,4};
Array2 = {4,8,6,5,12,14,1,2,9};
Result Array= {1,2,3,6,9,10,15,4,8,5,12,14,9}
Regards, Android IT