[求助]编译代码,谢了
帮我把下面的代码编译发送到我的邮箱csak47123@qq.com
import java.applet.applet;
import java.awt.*;
public class Star extends applet
{
int scount;
public void init
{
scount=Integer.parseInt(getParameter("xinsu"));
}
public void paint(Graphics g)
{
g.setColor(Color.pink);
for(int i=0;i<scount;i++)
{
int x=(int)(getSize().width*Math.random());
int y=(int)(getSize().height*Math.random());
int xz[]={x,x+2,x+7,x+2,x,x-2,x-7,x-2,x};
int yz[]={y,y+7,y+7,y+9,y+14,y+9,y+7,y+7,y};
Polygon suzu=new Polygon(xz,yz,9);
g.fillPolygon(suzu);
}
}
}