//HelloWorld.Java
import java.applet.*;
public class HelloWorld extends Applet{
public void paint(Graphics g){
g.drawString("HelloWorld",25,50);
}
}
编译后,生成一个HelloWorld.class
然后再把下面这一句放到网友的<BODY>中
<APPLET CODE="HelloWorld.class" width=150 height=200>
</APPLET>
然后再打开网页就能看见结果"HelloWold"