Incrementing within nested loop
<p>I have a pretty straight forward question. In the program below, why does i not increment to 1 in the first iteration of the for loop? My compiler shows that for the first run, j is not less than i because they are both 0. Thanks!</p>

<pre><code>  int i;
  for (i = 0; i &lt; 5; i++) {
    int j = 0;
    while (j &lt; i) {
      System.out.print(j + " ");
      j++;
</code></pre>