In this section, you create a MIDlet, which is a micro device application (or applet). As mentioned in the previous section, before you begin work on this project, create a projects directory:
In the projects directory, create a subdirectory called hello:
At this point, open Notepad or some other editing application. Save the file as hello.java. For Notepad and other generic editors, set the Encoding field to ANSI and the file type as *.java. The source code for hello.java is available on the CD in the Chapter 4 code folder. You can access it there and copy it into your projects directory, or type it as follows:
/** * Chapter 4 \ hello.java */ import javax.microedition.midlet.*; import ...