float [] xp = new float[0]; //used to store the allocated elements float [] yp = new float[0]; int numObjects = 0; //used to count the number of allocated elements void setup(){ size(300,300); } void draw(){ background(255); for(int i=0; i10000){ // will exit if after 10,000 attempts no space is found println(xp.length + " impass"); //warn the user break; } } println(numObjects++); }