2007-06-25 01:34:07 +00:00
|
|
|
package java.lang;
|
|
|
|
|
|
|
|
public abstract class System {
|
|
|
|
public static final Output out = new Output();
|
2007-07-04 22:27:08 +00:00
|
|
|
public static final Output err = out;
|
2007-06-25 01:34:07 +00:00
|
|
|
|
|
|
|
static {
|
|
|
|
loadLibrary("natives");
|
|
|
|
}
|
|
|
|
|
|
|
|
public static native void loadLibrary(String name);
|
|
|
|
|
2007-07-04 22:27:08 +00:00
|
|
|
public static native String getProperty(String name);
|
|
|
|
|
2007-06-25 01:34:07 +00:00
|
|
|
public static class Output {
|
2007-07-04 22:27:08 +00:00
|
|
|
public native void print(String s);
|
|
|
|
|
|
|
|
public void println(String s) {
|
|
|
|
print(s);
|
|
|
|
print(getProperty("line.separator"));
|
|
|
|
}
|
2007-06-25 01:34:07 +00:00
|
|
|
}
|
|
|
|
}
|