Basic HTML version of Foils prepared 13 July 98

Foil 24 SquareTest Applet

From Java Academy II:Advanced Java NPAC/ECS Java Academy -- February to April 98. by Tom Scavo

The Square Class
1 Our test applet draws an 8x8 checkerboard: y = 0; for ( int i = 0; i < 8; i++ ) { x = 0; y += length; for ( int j = 0; j < 8; j++ ) { x += length; square = new Square( x, y, length ); // draw or fill square here... } }

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Nov 28 1998