for (<initialization>; <continuation test>; <update>) {
<statement>
<statement>
...
<statement>
}
for (int i=1; i<=10; i++) {
for (int j=1; j<=10; j++) {
System.out.printf("%3d ", i*j);
}
System.out.println();
}
public static final int MAX_LENGTH = 255; // Maximum length of a single line
Lecture 5 sample is here (click on page, cut and paste)