title: Using conditional operator for long if statement
body: <p>I am seeing if there is a better/nicer way of writing a long if statement using multiple <code>||</code> operators.</p>
  <p>After looking online I see a lot of examples using conditional binomial operator. Is there a way this can be used when checking if a string equals a word?</p>
  <p>The examples online follow this structure:</p>
  <pre><code>int price = condition?80:100;
  </code></pre>
  <p>Here is the function:</p>
  <pre><code>public boolean validateLetters(String word) {
      if (word.equals(&quot;apple&quot;) || word.equals(&quot;excel&quot;) || word.equals(&quot;intern&quot;)
          || word.equals(&quot;orange&quot;) || word.equals(&quot;car&quot;)) {
        return true;
      }
      return false;
    }
  </code></pre>
  <p>The function checks to see the parameter word matches one of the following.</p>
  <p>Is there a nicer or more efficient way I could write it?</p>