title: Switch multiple case statement
body: <p>Can someone suggest me how can I replace the below code?</p>
  
  <p>How do I rewrite the code in order to avoid the repetition of the block <code>case 3:{code block A; break;}</code>?</p>
  
  <pre><code>switch(i) {
    case 1:  {code block A; break;}
  
    case 2:  {code block b; break;}
  
    case 3:  {code block A; break;}
  
    default: {code block default; break;}
  }
  </code></pre>
  
  <p>How can I have combined code for case 1 and case 3?</p>