J2ME Hello World Example
This is the simple hello world application. In this example we are creating a form name "Hello World" and creating a string message "Hello World!!!!!!!" as below:
Form form = new Form("Hello World");
String msg = "Hello World!!!!!!!";
In this application, To display the message we are using append method with the form as below:
form.append(msg);
The Application is as follows:
HelloWorld.java
import javax.microedition.lcdui.*;
|