title: Why can't your switch statement data type be long, Java?
body: <p>Here's an excerpt from <a href="https://docs.oracle.com/javase/tutorial/java/nutsandbolts/switch.html" rel="noreferrer">Sun's Java tutorials</a>:</p>
  
  <blockquote>
    <p>A switch works with the <code>byte</code>, <code>short</code>, <code>char</code>, and <code>int</code> primitive data types. It also works with enumerated types (discussed in Classes and Inheritance) and a few special classes that "wrap" certain primitive types: <code>Character</code>, <code>Byte</code>, <code>Short</code>, and <code>Integer</code> (discussed in Simple Data Objects).</p>
  </blockquote>
  
  <p>There must be a good reason why the <code>long</code> primitive data type is not allowed.  Anyone know what it is?</p>