allow printing of objects with toString()
[IRC.git] / Robust / src / ClassLibrary / System.java
1 public class System {
2   public static void printInt(int x) {
3     String s=String.valueOf(x);
4     printString(s);
5   }
6
7   public static native long currentTimeMillis();
8
9   public static native void printString(String s);
10
11   public static void println(String s) {
12     System.printString(s+"\n");
13   }
14   
15   public static void println(Object o) {
16     System.printString(""+o+"\n");
17   }
18  
19   public static void print(String s) {
20     System.printString(s);
21   }
22
23   public static void print(Object o) {
24     System.printString(""+o);
25   }
26   
27   public static void error() {
28     System.printString("Error (Use Breakpoint on ___System______error method for more information!)\n");
29   }
30
31   public static native void exit(int status);
32
33   public static native void printI(int status);
34
35   public static native void clearPrefetchCache();
36
37   public static native void rangePrefetch(Object o, short[] offsets);
38
39 }