FileDocCategorySizeDatePackage
HelloWorld.javaAPI DocphoneME MR2 API (J2ME)1916Wed May 02 18:00:26 BST 2007com.sun.midp.demos

HelloWorld

public class HelloWorld extends MIDlet
An example MIDlet with simple "Hello World" text and an exit command.

Fields Summary
Constructors Summary
public HelloWorld()
Constructs the HelloWorld MIDlet.

    
Methods Summary
public voiddestroyApp(boolean unconditional)
Destroys the MIDlet; this method does nothing because there is nothing to cleanup that is not handled by the garbage collector.

    
public voidpauseApp()
Pauses the MIDlet; this method does nothing because there are no background activities or shared resources to close.

    
public voidstartApp()
Prints "Hello World" and destroys the MIDlet.

        System.out.println("Hello World");
        notifyDestroyed();