Example
// Learning Processing
// Daniel Shiffman
// http://www.learningprocessing.com

// Example 9-2: Initializing the elements of an array one at a time

int[] stuff = new int[3];
stuff[0] = 8; // The first element of the array equals 8
stuff[1] = 3; // The second element of the array equals 3
stuff[2] = 1; // The third element of the array equals 1


»

No comments yet.

Leave a comment