How to create an array of objects
Hi Guys,
This is the problem I have
Partier lowie= new Partier(Buff, full, empty, mutex);
Partier duey= new Partier(Buff, full, empty, mutex);
Partier huey = new Partier(Buff, full, empty, mutex);
if I run lowie.start();
duey.start();
huey.start();
then I have no issues....
but I want to create a list of arrays such as lowie[0] lowie[1] lowie[2]
so that I can execute lowie[0].start();
lowie[1].start();
lowie[2].start();
how to declare an array of objects?
I know that I can't by declaring Partier lowie[] = new Partier[2];
thanks in advance.....I am not strong in the fundamentals..