Draw rows of squares pattern

Your drawrectangle method is not valid. Either use rect(x,y,w,h) or define a method called void drawrectangle().

1 Like