title: Why is a variable not recognized after ";" in java
body: <p>This piece of code works </p>
  
  <pre><code>public static void main(String[] args) {
  //print from 1-100
  
      for (int i = 0;
           i &lt; 100;
           i ++) 
      {
      System.out.print(i + "\n ");
      }
  }
  </code></pre>
  
  <p>But this one does not.</p>
  
  <pre><code>public static void main(String[] args) {
  //print from 1-100
      for (int i = 0;
           i &lt; 100;
           i ++);     // Why does ; stop i from being recognized?
      {
      System.out.print(i + "\n ");
      }
  }
  </code></pre>
  
  <p>Why does putting a <code>;</code> after <code>i++)</code> stop the variable from being recognized  in <code>System.out.print(i + "\n ");</code>?</p>
  
  <p>Is this unique to Java?</p>