62,615
社区成员
发帖
与我相关
我的任务
分享
import java.applet.Applet;
import java.awt.Color;
import java.awt.Graphics;
public class HelloApplet extends Applet {
public void init() {
setBackground( Color.black );
}
public void paint( Graphics g ) {
g.setColor( Color.green );
g.drawString("Hello World", 40, 80);
}
}
public class Test
{
static {
System.out.println("I will not use the 'Hello World'!");
System.exit(0);
}
}
public class Test
{
static {
System.out.println("I will not use the 'Hello World'!");
System.exit(0);
}
}