topical media & game development
graphic-processing-learning-09-example-9-1-example-9-1.pde / pde
// Learning Processing
// Daniel Shiffman
// http://www.learningprocessing.com
// Example 9-1: Additional array declaration and creation examples
// A list of 4 floating point numbers
float[] scores = new float[4];
// A list of 100 Human objects
Human[] people = new Human[100];
// Using a variable to specify size
int num = 50;
Car[] cars = new Car[num];
// Using an expression to specify size
Spaceship[] ships = new Spaceship[num*2 + 3];
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.