Prelab Exercises

private static Random generator = new Random(); A draw method that draws the square at its x,y coordinate in its color. Note that you need a Graphics object, like the page parameter of the paint method, to draw.Your draw method should take a Graphics object as a parameter. 2. ................
................