Comparing any of these value from an array Efficiently
<p>I am having an Array of String of 10 elements.
Now I need to compare my value available in any of these Arrays value.</p>

<blockquote>
  <p>1 Option I thought of sorting the array and then binary search on the
  same</p>
</blockquote>

<p>But further analysis, I found the value needed to be compare is not exactly same, it contains some value , but even in that case, it should be successful.</p>

<p>Like Value to compare , </p>

<pre><code>String str = "Author"
String[] arrays = {"@Author","@Auth",@Au...}
</code></pre>

<p>str.contains(arrays..) actually but how to do the same .</p>
