fixing exception handling stuff, println(byte) added

This commit is contained in:
benfry
2004-07-16 05:48:53 +00:00
parent 90017cff66
commit 5bc4f51c4b
3 changed files with 37 additions and 11 deletions

View File

@@ -952,6 +952,11 @@ public class PApplet extends Applet
// ------------------------------------------------------------
static public void print(byte what) {
System.out.print(what);
System.out.flush();
}
static public void print(boolean what) {
System.out.print(what);
System.out.flush();
@@ -989,6 +994,11 @@ public class PApplet extends Applet
//
static public void print(byte what[]) {
for (int i = 0; i < what.length; i++) System.out.print(what[i]);
System.out.flush();
}
static public void print(boolean what[]) {
for (int i = 0; i < what.length; i++) System.out.print(what[i]);
System.out.flush();
@@ -1026,6 +1036,10 @@ public class PApplet extends Applet
//
static public void println(byte what) {
print(what); System.out.println();
}
static public void println(boolean what) {
print(what); System.out.println();
}
@@ -1060,6 +1074,11 @@ public class PApplet extends Applet
//
static public void println(byte what[]) {
for (int i = 0; i < what.length; i++) System.out.println(what[i]);
System.out.flush();
}
static public void println(boolean what[]) {
for (int i = 0; i < what.length; i++) System.out.println(what[i]);
System.out.flush();