system.java

来自「专业汽车级嵌入式操作系统OSEK的源代码」· Java 代码 · 共 40 行

JAVA
40
字号
package java.lang;/** * System utilities. */public final class System{  private System() {}    /**   * Copies one array to another.   */  //public static native void arraycopy (Object src, int srcOffset, Object dest, int destOffset, int length);  static void arraycopy (char[] src, int srcOffset, char[] dest, int destOffset, int length)  {    for (int i = 0; i < length; i++)      dest[i + destOffset] = src[i + srcOffset];   }  /**   * Terminate the application.   */  public static native void exit(int code);      /**   * Current time expressed in milliseconds. In the RCX, this is the number   * of milliseconds since the RCX has been on. (In Java, this would   * be since January 1st, 1970).   */  public static native long currentTimeMillis();    /**   * Get the singleton instance of Runtime.   */  public static Runtime getRuntime() {  	return Runtime.getRuntime();  }}

⌨️ 快捷键说明

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