1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
import java.applet.Applet; public class TestApplet extends Applet { public static int MAGIC_NUMBER = 1; public int field; public void init() { field = MAGIC_NUMBER; } public int method() { return MAGIC_NUMBER; } }