FileDocCategorySizeDatePackage
expressions.javaAPI DocExample634Thu Jul 27 12:59:48 BST 2000None

expressions

public class expressions extends Applet

Fields Summary
private int
width
private int
breadth
private int
intArea
private double
area
private double
result
Constructors Summary
Methods Summary
public voidpaint(java.awt.Graphics g)

		width   =  20;
		breadth =  30;
		intArea = width  *  breadth;
		area    = width  *  breadth;
		result  = breadth - width * width;
		g.drawString("intArea = " + intArea, 20, 20);
		g.drawString("area    = " + area, 20, 40);
		g.drawString("result  = " + result, 20, 60);