title: switch statement and how to represent a block of statements?
body: <p>I am writing a program involving <code>ArrayList.</code>
  The program is about editing the <code>ArrayList</code> through user input:</p>
  
  <pre><code>ArrayList&lt;Type&gt; array = new ArrayList&lt;Type&gt;();
  
  switch (verify)
  {
  
  case 1:
    //A list of statement including variables, conditionals and loops
    break;
  
  case 2:
    //Another list of statement here includes variables, loops etc
    break;
  
  default:
    do something else;
  
  }
  </code></pre>
  
  <p>My question is that I don't want to put a lot of statement in a single case, is it possible for me to separate them and redirect the Java to read blocks of statement from somewhere else?</p>