import javax.microedition.lcdui.Display; import javax.microedition.lcdui.Form; import javax.microedition.midlet.MIDlet; public class hello extends MIDlet { public void startApp() { String name = getAppProperty("MIDlet-name"); Form f = new Form("Form"); f.append("Name of my first java midlet is "+name+"!"); Display.getDisplay(this).setCurrent(f); } public void pauseApp() {} public void destroyApp(boolean unconditional) {notifyDestroyed(); } }