import java.awt.*; import java.applet.*; import java.awt.event.*; public class Joonis3 extends Applet implements ActionListener{ TextField tf1=new TextField("2",10); TextField tf2=new TextField("3",10); public Joonis3(){ add(tf1); add(tf2); tf1.addActionListener(this); tf2.addActionListener(this); } public void paint(Graphics g){ int trepikArv=Integer.parseInt(tf1.getText()); int korrusteArv=Integer.parseInt(tf2.getText()); for(int i=0; i