Project settings saved
Building "MyProject3"
C:\WTK25\apps\MyProject3\src\IMPListTest.java:5: 方法声明无效;需要返回类型
public IMPListTest( ) {
^
1 错误
com.sun.kvem.ktools.ExecutionException
Build failed
这是编译后出现的错误
以下是程序
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
public class IMPLisTest extends MIDlet implements CommandListener{
private Display display;
public IMPListTest( ) {
display = Display.getDisplay(this);
}
protected void startApp() throws MIDletStateChangeException {
List aList = new List("多媒体",List.IMPLICIT);
aList.append(" 音乐 ",null);
aList.append(" 视频 ",null);
aList.setCommandListener(this);
display.setCurrent(aList);
}
protected void pauseApp() { }
protected void destroyApp(boolean arg0) throws MIDletStateChangeException { }
public void commandAction(Command command, Displayable display) {
if (command==List.select_command){
List test= (List) display ;
int selected = test.getSelectedIndex();
}
}
}
那点错了???
怎么改