⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 recordstoretest.java

📁 rms常用操作例子,可通过这些例子修改成你想要的代码,绝对有用!
💻 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 + -