The for loop is used mainly to realize definite loops.
for (int i = 1; i <= 10; i++) ...
for (int i = 10; i >= 1; i--) ...
for (int i = -4; i <= 4; i = i+2) ...
for (int i = 0; i >= -10; i = i-3) ...
Example: Print the numeric code of the characters from 15 to 85.
for (int i = 15; i <= 85; i++) { char c = (char)i; System.out.println("i = " + i + " -> c = " + c); }