java: how to check if two arrays contain common elements?
<p>Is there any easy way to check if two arrays contain any common elements?
Is this appropriate? The arrays contain type char.</p>

<pre><code>Arrays.asList(encryptU).contains(Ualpha[randNum]));
</code></pre>

<p>thanks in advance!</p>
