title: Compare two arrays for any similar value
body: <p>I would like to compare two arrays, if at least one value can be found on both arrays.</p>
  
  <p><strong>Scenario #1 :</strong> <code>2</code> is found in both arrays, so the result is <code>true</code>.</p>
  
  <pre><code>String[] x = {"1","2","3"};
  String[] y = {"2","5","6"};
  </code></pre>
  
  <p><strong>Scenario #2 :</strong> No matching value, so the result is <code>false</code>.</p>
  
  <pre><code>String[] x = {"1","2","3"};
  String[] y = {"4","5","6"};
  </code></pre>
  
  <p>Is there any built-in method in Java, or any library that can handle this requirement?</p>
  
  <p>I would like to emphasize that I am looking for a Java library or any Java method that can do this out of the box.</p>
  
  <p>The <code>Collection.contains</code> is not an option because all values in both arrays should be the same in order to return true. (I need to return true if at least one value is similar in both arrays) </p>