title: How do I determine whether an array contains a particular value in Java?
body: <p>I have a <code>String[]</code> with values like so:</p>
  
  <pre><code>public static final String[] VALUES = new String[] {"AB","BC","CD","AE"};
  </code></pre>
  
  <p>Given <code>String s</code>, is there a good way of testing whether <code>VALUES</code> contains <code>s</code>?</p>