title: Short|quick int values comparison
body: <p>I learned about terminary expression, but what I want is a little different.</p>
  
  <p>I have the following:</p>
  
  <pre><code>int MODE = getMyIntValue();
  </code></pre>
  
  <p>I do comparison as the following:</p>
  
  <pre><code>if(MODE == 1 || MODE == 2 || MODE == 3) //do something
  </code></pre>
  
  <p>I would like to know if there is a short way of doing this, I tried something like this but it didn't work:</p>
  
  <pre><code>if(MODE == 1 || 2 || 3) //do something
  </code></pre>
  
  <p>There is a short|quick way of doing it? I like quick "ifs" because it makes the code more clear, for example, it is more clear this:</p>
  
  <pre><code>System.out.println(MODE == 1 ? text1 : text2):
  </code></pre>
  
  <p>Than this:</p>
  
  <pre><code>if(MODE == 1) System.out.println(text1):
  
  else System.out.println(text1):
  </code></pre>
  
  <p>Thanks in advance!</p>