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