Java - Optimized way to find duplicates from two ArrayLists/Array
<p>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.</p>

<pre><code>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}
</code></pre>

<p>Regards,
Android IT</p>
