Basic HTML version of Foils prepared 13 July 98

Foil 49 Another Example

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

The OctagonTest Applet
1 The next example involves octagons
2 Since an octagon has eight vertices, one of the constructors of the Octagon class requires sixteen integers
3 To make it easier to work with octagons, we introduce another class: the Point class
4 Like Polygon, the Point class is a core class in package java.awt

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