Name
java.lang.System
Synopsis
This class is a much smaller version of the J2SE
System class, which provides static methods to
access system functionality. The err and
out streams represent their standard I/O
equivalents. The getProperty() method returns a
named property from the system properties list. (Note that the MIDP
APIs redefine the microedition.locale property to
include at least "MIDP-1.0“.)
The following list describes the characteristics of several properties.
-
microedition.platform Name of the host platform/device (CLDC)
-
microedition.encoding Default character encoding (CLDC)
-
microedition.configuration Name/version of the configuration (CLDC)
-
microedition.profiles Names of the supported profiles (CLDC)
-
microedition.locale Current locale (MIDP)
The arraycopy() method is preserved from the J2SE
System class; it copies a section of an array from
a source to a destination. currentTimeMillis()
returns the current time in milliseconds from the epoch, midnight
GMT, January 1, 1970. The exit() method terminates
the application with a status code. gc() performs
a system-wide garbage collection.
public final classSystem{ // public instance fields public static final PrintStreamerr; public static final PrintStreamout; // static methods public static native voidarraycopy(Object src, int src_position, Object dst, int dst_position, int length); public static native longcurrentTimeMillis() public static voidexit(int status); public static voidgc(); public static StringgetProperty ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access