printArray()

本参考资料用于Processing 3.0+。 如果你使用的是前一版本,请在使用软件帮助菜单内的参考资料。. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Core Javadoc and Libraries Javadoc.

名称

printArray()

示例
float[] f ={ 0.3, 0.4, 0.5
  };

printArray(f);

// The above code prints: // [0] 0.3 // [1] 0.4 // [2] 0.5 
描述 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).

语法
printArray(what)
参数
what Object: one-dimensional array
返回值 void
相关 print()
println()

Updated on October 2, 2018 05:02:06pm EDT

printArray()