mirror of
https://github.com/processing/processing4.git
synced 2026-02-10 17:19:25 +01:00
fixing exception handling stuff, println(byte) added
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user