“Expression expected” and “Cannot find symbol” error

You should be using variable name of the array instead of classname.

machine[0] = new SlotMac(3,35,30);    
machine[1] = new SlotMac(10,100,60);
machine[2] = new SlotMac(4,10,9);

I see you fixed the other firsmachine() related things

Leave a Comment