// ColSquares // Daniel Italiano // February 12, 2004 import java.awt.*; import hsa.Console; public class ColSquares { static Console c; // The output console public static void main (String[] args) { c = new Console (); // Define colors Color blue = new Color (0,0,255); Color yellow = new Color (255,255,0); Color green = new Color (0,255,0); Color red = new Color (255,0,0); c.setColor (blue); c.fillRect(0,0,400,400); // draw a Blue Rectangle c.setColor (yellow); c.fillRect(50,50,300,300); // draw a Yellow Rectangle c.setColor (green); c.fillRect(100,100,200,200); // draw a Green Rectangle c.setColor (red); c.fillRect(150,150,100,100); // draw a Red Rectangle } // main method } // ColSquares class