Question about switch
<p>I'm a java beginner, so what's wrong with this code:</p>

<pre><code>switch(keycode) {
    case Keyboard.KEY_UP || Keyboard.KEY_DOWN: 
}
</code></pre>

<p>I gives me the following error message:</p>

<pre><code>bad operand types for binary operator '||'
  first type:  int
  second type: int
</code></pre>
