import java.awt.*; import java.applet.*; public class Laskuri extends Applet { public void paint(Graphics g) { int luku = 1000; g.drawString("Laskurin alkuarvo: " + luku, 5, 10); luku = luku + 1; g.drawString("Laskurin loppuarvo: " + luku, 5, 25); } }