println()Input/OutputText OutputIDE
println("begin");
float f = 0.3;
println("f is equal to " + f + " and i is equal to " + 1024);
String s = "end";
println(s);
// The above code prints the following lines:
// begin
// f is equal to 0.3 and i is equal to 1024
// end
float[] f = { 0.3, 0.4, 0.5 };
println(f);
// The above code prints:
// 0.3
// 0.4
// 0.5
Writes to the text area of the Processing environment's console. This is often helpful for looking at the data a program is producing. Each call to this function creates a new line of output. Individual elements can be separated with quotes ("") and joined with the string concatenation operator (+) except when printing array data.
println(data)
boolean, byte, char, color, int, float, String, boolean[], byte[], char[], color[], int[], float[], or String[]None
print()
1.0FunctionCore