import java.awt.*;

import java.applet.*;

import java.awt.event.*;

/*<applet code =”Calculator” width=250 height=350>

</applet>*/

public class Calculator extends Applet implements ActionListener

{

Button keysArray[];

Panel p1,p,keyPad;

TextField ledField;

double result;

boolean first;

boolean foundKey;

static boolean clearText;

int prevOperator;

Label l1;

public void init()

{

(more…)