X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=rtl%2FOut.java;h=99899776c45ad838e94f8649f1d6fe9bd2049e54;hb=f4aa48e4c1e3b81ccbe3da5c33fdaba3a46081dd;hp=309578afe881cccdb7078a6bc2cdca151fcb0bf8;hpb=25b73915e7fe0ae7dc51cf6f4a012f021257a35d;p=dsw-obn.git diff --git a/rtl/Out.java b/rtl/Out.java index 309578a..9989977 100644 --- a/rtl/Out.java +++ b/rtl/Out.java @@ -7,17 +7,32 @@ public class Out } - public static void Int(long i, long n) + public static void Char(byte ch) + { + System.out.write(ch); + } + + public static void String(byte[] str) + { + int i = 0; + while(str[i] != 0) + { + i += 1; + } + System.out.write(str, 0, i); + } + + public static void Int(long i, short n) { System.out.print(i); } - public static void Real(float x, int n) + public static void Real(float x, short n) { System.out.print(x); } - public static void LongReal(double x, int n) + public static void LongReal(double x, short n) { System.out.print(x); }