title: How to compare multiple strings?
body: <p>I was wondering how I can compare multiple strings in one line. I tried using the || but it doesn't work for booleans or strings. this is what my code is like:</p>
  
  <pre><code>}else if(question != "a" || "b") {
      System.out.println("Sorry that isn't an A or a B");
  </code></pre>
  
  <p>For those who marked it duplicate, I checked over 200 questions here on stack overflow, and none worked. The one @Chrylis posted actually didn't help. they were just asking about the difference in == and .equals()</p>