菜鸟求疑?
美女AND帅哥们帮忙看一下哪里出错了?
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
import javax.microedition.lcdui.*;
import javax.microedition.lcdui.game.GameCanvas;
public class gameStart extends MIDlet {
public GameCanvas gc;
public Display d;
public static gameStart midlet;
public gameStart() {
// TODO Auto-generated constructor stub
super();
midlet=this;
d=Display.getDisplay(this);
}
protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
// TODO Auto-generated method stub
}
protected void pauseApp() {
// TODO Auto-generated method stub
}
protected void startApp() throws MIDletStateChangeException {
// TODO Auto-generated method stub
if(gc==null){
gc=new GameCanvas();
gc.gameState=GameCanvas.MENU;
d.setCurrent(gc);
}else{
d.setCurrent(gc);
}
}
}
------解决方案--------------------
楼主想让我们帮你看语法错误吗?你怎么不把什么报什么错贴出来?