We are about to switch to a new forum software. Until then we have removed the registration on this forum.
The code in the third line clearly defines the variable, but the console says it has not been initialised. What's wrong here?
IntList drawfoodvalues(IntList X, IntList Y, int grid){
IntList allowed = new IntList();
int tempX = X.size();
tempX is defined as the size of IntList X.
Answers
And where is X assigned a value?