import java.applet.Applet; import java.awt.*; import java.awt.event.*; public class Majad extends Applet implements ActionListener{ TextField tf=new TextField("3"); int skorrus=4; public Majad(){ add(tf); tf.addActionListener(this); } public void paint(Graphics ekraan){ setBackground(Color.white); skorrus=Integer.parseInt(tf.getText().trim());//mitu korrust soovitakse int x=0, vahe=0; while(vahe