6 public final class System
11 * Copies one array to another.
13 //public static native void arraycopy (Object src, int srcOffset, Object dest, int destOffset, int length);
14 static void arraycopy (char[] src, int srcOffset, char[] dest, int destOffset, int length)
16 for (int i = 0; i < length; i++)
17 dest[i + destOffset] = src[i + srcOffset];
21 * Terminate the application.
23 public static native void exit(int code);
26 * Current time expressed in milliseconds. In the RCX, this is the number
27 * of milliseconds since the RCX has been on. (In Java, this would
28 * be since January 1st, 1970).
30 public static native long currentTimeMillis();
33 * Get the singleton instance of Runtime.
35 public static Runtime getRuntime() {
36 return Runtime.getRuntime();