We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3af44b6 commit d05dfbfCopy full SHA for d05dfbf
1 file changed
core/src/processing/core/PApplet.java
@@ -4501,13 +4501,17 @@ static public void println(String[] array) {
4501
4502
4503
/**
4504
- * Use printArray() instead. This function causes a warning because the new
4505
- * print(Object...) and println(Object...) functions can't be reliably
4506
- * bound by the compiler.
+ * For arrays, use printArray() instead. This function causes a warning
+ * because the new print(Object...) and println(Object...) functions can't
+ * be reliably bound by the compiler.
4507
*/
4508
- @Deprecated
4509
static public void println(Object what) {
4510
- printArray(what);
+ if (what != null && what.getClass().isArray()) {
+ printArray(what);
4511
+ } else {
4512
+ System.out.println(what.toString());
4513
+ System.out.flush();
4514
+ }
4515
}
4516
4517
0 commit comments