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

📄 test.java

📁 手机上进行RSA加密的算法
💻 JAVA
字号:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import rsa.*;

public class test extends MIDlet {
  private static test instance;
  private Display display;
  byte[] a = new byte[]{(byte)0x77,(byte)0x63,(byte)0x79,(byte)0x8A,(byte)0x12,(byte)0xEE,(byte)0xC2,(byte)0x89};

  public StringItem showTime;
  long thetime;
  /** Constructor */
  public test() {
    instance = this;
    display = Display.getDisplay(this);
  }

  /** Main method */
  public void startApp() {
    thetime = Untitled1.startApp(a);
    showTime = new StringItem("","用时为"+thetime+"秒");
    Form ShowForm = new Form("the time I've used");
    ShowForm.append(showTime);
    display.setCurrent(ShowForm);
  }

  /** Handle pausing the MIDlet */
  public void pauseApp() {
  }

  /** Handle destroying the MIDlet */
  public void destroyApp(boolean unconditional) {
  }

  /** Quit the MIDlet */
  public static void quitApp() {
    instance.destroyApp(true);
    instance.notifyDestroyed();
    instance = null;
  }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -