title: What is this error mean label z is missing in break statement?
body: <p>Hi in the below code i am trying to come out of for loop using break and label but i am getting the following error. <code>Label Z is missing.</code> Please help me the code is given below. And please mention why this error occurs.</p>
  
  <pre><code>public class Breaker {
      static String o = "";
      public static void main(String[] args) {
          z:
          o = o + 2;
          for(int x = 3; x &lt; 8; x++) {
              if(x==4) break;
              if(x==6) break z;
              o = o + x;
          }
          System.out.println(o);
       }
   }
  </code></pre>