程序如下:
∥Java_1. java
import java. applet. *;
import java. awt. Graphics;
∥********** Found **********
public class Java_1 extends ( 1 )
public void paint( Graphics g)
∥********** Found **********
g. (2) ("欢迎你来参加Java语言考试!",25,25);
∥Java_1. html
<html>
<applet code="Java_1. class"width=300 height=45>
</applet>
</html>