How to compare 2 String array lists and get the elements which are same in both the array lists using java
<p>i have 2 array lists a and b containing string elements ex:- ( 1,2,3,4,5)</p>

<p>a = {1,2.3.4.5}
b= {3,4,5}</p>

<p>I want to compare array lists a and b ( each element of a compared with each element of b ) and after comparison i want the elements which are same in both the array lists. How will i do this in java? </p>
