title: Java: Check if enum contains a given string?
body: <p>Here's my problem - I'm looking for (if it even exists) the enum equivalent of <code>ArrayList.contains();</code>.</p>
  
  <p>Here's a sample of my code problem:</p>
  
  <pre><code>enum choices {a1, a2, b1, b2};
  
  if(choices.???(a1)}{
  //do this
  } 
  </code></pre>
  
  <p>Now, I realize that an <code>ArrayList</code> of <code>Strings</code> would be the better route here but I have to run my enum contents through a switch/case elsewhere. Hence my problem.</p>
  
  <p>Assuming something like this doesn't exist, how could I go about doing it?</p>