This is the instruction: returns an int array where array[0] is the number of unused spaces This is the code I have so far but I am not sure if I am doing it right (or what I need to return in the method)
public int[] counts()
{
int count=0;
for(int i=0; i<array.length;i++)
{
for (int j=0; j<array.length; j++)
{
if (array[i][j] == 0)
{
count = 0;
}
}
}
return;
}