import java.applet.*; import java.awt.*; public class BallBounce extends Applet { public void init() {setSize(800,600); } public void paint (Graphics g) { for (int x=0; x <= 800; x+=20) {g.setColor(Color.red); g.fillOval(x,150,10,10); for (int y=1; y<=100000000;y++); g.setColor(Color.white); g.fillOval(x,150,10,10); } } }