With ten calls to drawOval()
.
Or,
better yet, with a call to drawOval()
inside of a loop body
that is iterated 10 times.
Here is a start on an applet that uses a loop to draw ten red circles.
The above program skeleton has most of what is needed. It has:
paint()
method.It is often a good idea to think about what you are doing one piece at a time. Often it is wise to first examine the main loop of the program.
Fill in the blanks so the loop is correct for a program that is to draw ten circles.