Id: for.tex,v 1.1 2003/11/07 00:02:26 joe Exp
Typische Schleife:
for (int i = a; i < b; i++) { System.out.println (i); }ist äquivalent zu
{ int i = a; while (i < b) { System.out.println (i); i = i + 1; } }Beachte: Bedingung wird jedesmal ausgewertet, Laufvariable ist nur in der Schleife sichtbar.