In this chapter you finally got to see some Java code for a real MIDlet. Although the MIDlet wasn't quite a mobile game, you got to build it from scratch and go from source code files to a distributable JAR file. Before you dove into the coding, however, this chapter made sure to lay the groundwork for what exactly constitutes a MIDlet, as well as the general layout of the J2ME APIs. You also learned about the life cycle of a MIDlet and the methods in the MIDlet class that manage this life cycle.
This chapter introduced you to several classes and interfaces that are entirely unique to mobile phone programming in Java. The next chapter takes you an important step closer to mobile game development by digging into mobile game graphics.