Sounds like a counting loop to me.
Here is (yet another) test applet:
// assume that the drawing area is 200 by 200
public class TestCircle10 extends Applet
{
Circle circ = new Circle();
public void paint ( Graphics gr )
{
circ.setPosition( 100, 100 );
int count = 1;
while ( count <= 10 )
{
circ.setRadius( ________________ );
circ.draw( gr );
count = count + 1;
}
}
}
The loop will execute the loop body ten times.
The setRadius()
method will be used to change to
a new radius each time.