title: Java label? Outer, middle, inner
body: <p>Please don't worry about the loop but my question is about those keywords: <code>outer</code>, <code>middle</code>, and <code>inner</code>.They are not declared as instance variable, why the IDE let the code compile? I did some search on google, is this java label? some kind of keywords in Java? Thanks guys.</p>
  
  <pre><code>public class LoopTest{
  
  public static void main(String[] args){
      int counter = 0;
  
      outer:
      for(int i = 0; i &lt; 3; i++){
          middle:
          for(int j = 0; j &lt; 3; j++){
              inner:
              for(int k = 0; k &lt; 3; k++){{            
              }
                  if(k - j &gt; 0){
                      break middle;
                  }
                  counter++;
              }
          }
      }
      System.out.println(counter);
  }
  </code></pre>
  
  <p>}</p>