Reference+
Name
printArray()
Description
The printArray() function writes array data to the text area of the Processing environment's console. A new line is put between each element of the array. This function can only print one dimensional arrays. Note that the console is relatively slow. It works well for occasional messages, but does not support high-speed, real-time output (such as at 60 frames per second).
Examples
float[] f = { 0.3, 0.4, 0.5 }; printArray(f); // The above code prints: // [0] 0.3 // [1] 0.4 // [2] 0.5
Syntax
printArray(what)
Parameters
what
(Object)
one-dimensional array
Return
void
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.