import java.applet.Applet; import java.awt.event.*; import java.awt.*; public class Aare1 extends Applet implements KeyListener{ int x=100, y=100, ax=10, ay=150, samm=5, puutekaugus=20; public Aare1(){ addKeyListener(this); } public void paint(Graphics g){ g.drawRect(ax-10, ay-10, 20, 20); g.drawOval(x-10, y-10, 20, 20); if(kaugus(x, y, ax, ay)