Java Switch and Or statement
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/9566263/can-i-use-or-statements-in-java-switches">Can I use OR statements in Java switches?</a>  </p>
</blockquote>



<p>I have a switch statement. Is there a way to do an or statement within the switch. Ie</p>

<pre><code>switch(val){

case 1
//Do Stuff
break;

case 2
//Do Stuff
break;

case 3
//Do Stuff
break
}
</code></pre>

<p>Instead do something like</p>

<pre><code>switch(val){

case 1 or 3
//Do Stuff
break;

case 2
//Do Stuff
break;

}
</code></pre>
