title: Switch Statement in Java netbeans
body: <p>I have different fields using the same parameters i.e. same grading scale. I want to use switch statement to return grades for different fields using the same scale. Something like this. I thought that there was something like this: <code>switch (attend, job, initiative) {</code> that would combine the three variables.</p>
  
  <pre class="lang-java prettyprint-override"><code>int attend = 5;
  int job = 5;
  int initiative = 5;
  
  switch (attend) {
      case  1:
          getattendo = 5;
          break;
      case  2:
          getattendo = 4;
          break;
      case  3:
          getattendo = 3;
          break;
      case  4:
          getattendo = 2;
      case  5:
          getattendo = 1;
          break;
      default:
          getattendo = 0; // null
  }
  </code></pre>
  
  <p>Your help is appreciated.</p>
  
  <p>fmk</p>