title: How can I check if an ArrayList contains any element of another ArrayList?
body: <p>Is there any way to determine whether an ArrayList contains any element of a different ArrayList?</p>
  
  <p>Like this:</p>
  
  <pre><code>list1.contains(any element of list2)
  </code></pre>
  
  <p>Is looping through all the elements of <code>list2</code> and checking the elements one by one the only way?</p>