import java.awt.*; public class BestTime extends java.awt.swing.JApplet { int number, number2; public void init() { String parameter = getParameter("X"); if (parameter != null) number = Integer.parseInt(parameter); String parameter2 = getParameter("Y"); if (parameter2 != null) number2 = Integer.parseInt(parameter2); } public void paint(Graphics screen) { Graphics2D screen2D = (Graphics2D) screen; screen2D.drawString("My best time in the 200-meter dash is " + number + "." + number2 + " seconds", 5, 50); } }