mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
looking for a better solution here
This commit is contained in:
@@ -4431,7 +4431,7 @@ public class PApplet extends Applet
|
||||
System.out.println();
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
/**
|
||||
* @param what boolean, byte, char, color, int, float, String, Object
|
||||
*/
|
||||
@@ -4477,11 +4477,25 @@ public class PApplet extends Applet
|
||||
|
||||
|
||||
static public void println(Object... variables) {
|
||||
// System.out.println("got " + variables.length + " variables");
|
||||
print(variables);
|
||||
println();
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
// Breaking this out since the compiler doesn't know the difference between
|
||||
// Object... and just Object (with an array passed in). This should take care
|
||||
// of the confusion for at least the most common case (a String array).
|
||||
static public void println(String[] array) {
|
||||
for (int i = 0; i < array.length; i++) {
|
||||
System.out.println("[" + i + "] \"" + array[i] + "\"");
|
||||
}
|
||||
System.out.flush();
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
static public void println(Object what) {
|
||||
if (what == null) {
|
||||
// special case since this does fuggly things on > 1.1
|
||||
|
||||
Reference in New Issue
Block a user