/** * Iterating through arrays. * *

Elie Zananiri
* ACAD Processing workshop
* April 2008

*/ // create an array with 10 ints int[] numbers = new int[10]; // writing to an array: // fill the array with numbers from 1 to 10 for (int i=0; i < 10; i++) { numbers[i] = i+1; } // reading from an array: // print the contents of each element to the console window for (int i=0; i < 10; i++) { println(numbers[i]); }