// ForLoopDemo.java
// Single for structure
import java.awt.*;
import javax.swing.JApplet;

public class ForLoopDemo extends JApplet {
	public void paint( Graphics g ) {
		int yPos = 25;

		for ( int counter = 0; counter <= 10; counter++ ) {
			g.drawString( "counter = " + counter, 25, yPos );
			yPos += 15;
		}
	}
}