Slide 4.8: Preferences.java
  Slide 4.10: Line-by-line anatomy of RecordStore project (cont.)
  Home


Line-by-line Anatomy of RecordStore Project


import javax.microedition.rms.*;
The package javax.microedition.rms is a mechanism for MIDlets to persistently store data and later retrieve it.

Class hierarchy Interface hierarchy
mForm.append( new StringItem( null, rse.toString( ) ) );
The constructor public StringItem(String label, String text) creates a new javax.microedition.lcdui.StringItem object with the given label and textual content. Either label or text may be present or null.
private Hashtable mHashtable;
The class java.util.Hashtable implements a hashtable, which maps keys to values. Any non-null object can be used as a key or as a value. To successfully store and retrieve objects from a hashtable, the objects used as keys must implement the hashCode method and the equals method.