title: Java: How do I shift the cases of a switch statement to separate file?
body: <p>I have a Java method with a <code>switch</code> statement.</p>
  
  <p>It’s working fine, but I have a lot of cases, perhaps 20 or more, as shown below.</p>
  
  <pre><code>switch (result)  // result is of type Enum
  {
      case 1:
          break;
  
      case 2:
          break;
  
      //----
      //----
      //----
  
      default:
          break;
  }  // End of Switch 
  </code></pre>
  
  <p>Please let me know how to shift these cases into another file.</p>