I have an array of Object
and wondered if I could pass parameters whilst simultaneously instantiating the array.
For example:
theArray = new Object(20, 20, 20)[30];
I want to avoid looping through each element and passing parameters to them after the array has been created if I can help it.
I know the above syntax isn't correct, but it illustrates what I'm trying to achieve.
Thanks for your responses!