The Java for loop is a looping construct which continually executes a block of statements over range of values.

The syntax of a for loop in Java is:

 for (initialization; termination; increment) {
   statement
}

Here is a Java for loop which prints the numbers 1 through 10.

 for (int loopvar = 1; loopvar <= 10 ; loopvar++) {
   System.out.println(loopvar);
}