how to apply binarySearch collection for two String ararylist
<p>I have String Lists called A and B. I want to search common elements between these two arraylist using binarySearch collection. how to use binarySearch for these two string arraylist so that i should able to print the common elements from the lists.</p>

<p>am able to apply this collection to find single element like this </p>

<pre><code> int index = Collections.binarySearch(arrayList,"4");

System.out.println("Element found at : " + index);
</code></pre>

<p>but how do i apply binarySearch collection to two String list to get common elements???</p>
