Processing Forum
in the first line I suppose {} stands for the NULL ensemble, that is an array is created that contains no element at all, am I right?
then this method seems to provide an easy way to make arrays of variable lenght, if needed (unlike my method which fix a number_of_instances ). (using also shorten() or expand() ).
Then I saw ArrayList existed, and it's purposes was to create array of changing size.
so my questions are:
- are there other methods to create arrays of objects, that would be interresting?
- is one method "better" than another to create arrays of objects? especially if one wants a variable lenght of array?
this last is probably too advanced:
- is there a risk to run out of memory, or else, creating to many objects (I guess so), and is there a way of detecting such a danger, and then provide to the user a dedicated limit, corresponding to it's own personnal situation?
Best regards,
Laurent.