Hey, I've been set the following question as part of my programming class:
Write an applet that draws a series of concentric circles, alternating between red and blue in colour, the largest of which fits exactly within the applet drawing area. Use loops as appropriate. The number of circles should be specified as a parameter to the applet; if unspecified or invalid, it should default to 2.
You may need to use the following methods of the Graphics class: setColor(Color c): set the drawing colour drawOval(x,y,xdia,ydia): draws an oval
I'm able to draw the concentric circles with no problem but the changing of the colour for every second one is the part that is causing me problems....any help welcome