// WhileLoopTest.java // Draws series of decreasing circles to demo while loop // Sea shell figure import java.awt.*; import javax.swing.JApplet; public class WhileLoopTest extends JApplet { public void paint ( Graphics g ) { int i = 0; while ( i <= 10 ) { // Upper left corner moves down and in as radius decreases g.drawOval( 10 + i * 10, 10 + i * 10, 100 - i * 10, 100 - i * 10 ); i++; } } }