title: Why can't Java switch over the primitive long?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2676210/why-cant-your-switch-statement-data-type-be-long-java">Why can’t your switch statement data type be long, Java?</a>  </p>
  </blockquote>
  
  
  
  <p>Why is something like that not possible?</p>
  
  <pre><code>private void importantFunction( long arg1 ) {
  
      switch (arg1){
      case 0:
           // do stuff
          break;
      case 1:
           // do other stuff
          break;
      default:
          //do default stuff
          break;
      }
  }
  </code></pre>
  
  <p>The way I understand long values, there shouldn't be that much of a difference between them and integers.</p>