[原创]这个程序那错了?
import java.applet.Applet;
import java.awt.Graphics;
public class AP2 extends Applet{
String string=null;
int x,y;
public void init(){
string=getParameter("message");
x=Integer.parseInt(getParameter("xPos"));
y=Integer.ParseInt(getParameter("yPos"));
}
public void paint(Graphics g){
if(string!=null)
g.drawString(string,x,y);
g.drawString("参数x为"+x,30,60);
g.drawString("参数y为"+y,30,90);
}
}
编辑时总是出现错误,
希望高手告诉我!!!!