title: Refactor this Java code checking if a String contains any of these possibilities?
body: <p>I am needing to check if a string does NOT contain <strong>any</strong> of these string possibilities:</p>
  
  <p>MNC
  BRA
  LEB
  MAR
  RVC
  WAY
  GLZ
  WWW
  HYB</p>
  
  <p>My current code :</p>
  
  <pre><code> if(selectedLocation.equals("OTH"))
   {
      if(!currentClassLocation.equals("MNC") &amp;&amp;
                          !currentClassLocation.equals("BRA") &amp;&amp;
                          !currentClassLocation.equals("LEB") &amp;&amp;
                          !currentClassLocation.equals("MAR") &amp;&amp;
                          !currentClassLocation.equals("RVC") &amp;&amp;
                          !currentClassLocation.equals("WAY") &amp;&amp;
                          !currentClassLocation.equals("GLZ") &amp;&amp;
                          !currentClassLocation.equals("WWW") &amp;&amp;
                          !currentClassLocation.equals("HYB"))
                      {
                           //Awesome, I need this string! I operate on it here.
                      }
   }
  </code></pre>
  
  <p>Long story short, I can't use a for-loop. Is there a way I can check if the string doesn't contain any of these without iteration?</p>