Loops in Java and NetRexx

Java vs NetRexx loop statements
 
while ( condition ) statement;
 
loop while expression
statements
end
 
do statement;
while ( condition ) ;
 
loop until expression
statements
end
 
for ( initialization; condition;      increment;)
statement;
 
loop var=expri to exprt by exprb
statements
end

 
 
Java examples:
NetRexx examples:
 
for ( int i = 0; i < 100; i = i + 1 ) {
        System.out.println( i );
        int j = i;
    }

do { i = i + 1;
        j = i;  }
    while ( i != 10 );

 
loop while i < 10
    i = i + 1
    say i
    end

loop forever
    say "infinite loop in progress"
    end

loop k = 1 to 10 by 2
    say "k is " k
    end