To view this content, you need to install Java from java.com

Purpose:
Illustrate the use of the Java "for" loop.
Draw three rectangles to the canvas (screen) using a "for" loop using the default colors.

Loop for 4 times as stated in the variable named "nTimesInLoop".
The variable "i" will go from 3 to 6 incremented by 1.

Default canvas size is width 100 and length 100.
Default canvas color is a gray.
Default stroke (outline) color is black.
Default fill color (for shapes) is white.

Source code: for_loop_0003

Built with Processing