title: Else statement inside Switch is an syntax error?
body: <p>I am getting Syntax Error on the else statement in the following code :</p>
  
  <pre><code>switch(v.getId())
  {
  case R.id.b0 :      
      if(s.length()==1 &amp;&amp; s.charAt(0)=='0');
      {  
      et2.setText("0");
      et1.setText("0");
      }
      else
      {
      s=s+"0";
      call(s);
      }
      break;
  //2nd case and body
  }
  </code></pre>
  
  <p>The Error is : <code>Syntax error on token "else", delete this token</code></p>
  
  <p>Does java not permit this?</p>
  
  <p>Will I have to use the nested switch? </p>
  
  <p>Or is there something wrong with my code itself?</p>