Ok so, I can't figure out why my code is giving me the error message "Cannot find symbol - class slots"
As far as I can tell I've defined the class haven't I?
public class SlotCollection { private Slot slots[]; public SlotCollection(slots[] intArray) { slots[] x; x = new slots[4]; } public int getSize() { return 4; } public Slot getSlot(int i) { switch (i) { case 0: return slots[0]; case 1: return slots[1]; case 2: return slots[2]; case 3: return slots[3]; default: return null; } }
I have much more code in seperate classes, but I believe this is all that is relevant for this error. Please help.