Uncaught exception java/lang/ArrayIndexOutOfBoundsException
Hi,
this is my first application (copyed by an example).
i don't understand why i found this exception:
"Uncaught exception java/lang/ArrayIndexOutOfBoundsException"
this is the code
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Form;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
publicclass Menuextends MIDlet{
private Display display;
private Form fmMain;
private Command cmExit;
private Command cmFirst;
public Menu(){}
protectedvoid pauseApp(){}
protectedvoid destroyApp(boolean arg0)throws MIDletStateChangeException{}
protectedvoid startApp()throws MIDletStateChangeException{
display = Display.getDisplay(this);
cmExit =new Command("Exit", Command.EXIT, 1);
cmFirst =new Command("HELLO", Command.SCREEN, 2);
fmMain =new Form("First application");
fmMain.addCommand(cmExit);
fmMain.addCommand(cmFirst);
display.setCurrent(fmMain);
}
}
can someone help me?
ty

