📄 recordstoretest.java
字号:
import javax.microedition.midlet.*;
import javax.microedition.rms.*;
public class RecordStoreTest extends MIDlet {
public RecordStoreTest(){}
public void startApp()throws MIDletStateChangeException {
RecordStore rs=null;
try {
rs =RecordStore.openRecordStore("file1 ",true);
System.out.println("Record Store file1 is opened.");
}catch(Exception e){
System.out.println("Error:"+e.getMessage());
}finally{
//close the Record Store
try {
rs.closeRecordStore();
System.out.println("Record Store file1 is closed ");
}catch (Exception e){
System.out.println("Error:"+e.getMessage());
}
}
destroyApp(true);
notifyDestroyed();
}
public void pauseApp(){}
public void destroyApp(boolean unconditional){}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -