0

What I am doing is filling a 2-D array with numbers in a random order.

i.e. I pick a position in the 2-D array and input a number there

eg: array[2][1] = 3;(this input is received from a text file)

In this way, I fill the array but some spots remain empty.

What I want to do is fill these empty position in the 2-D array with the number 99, but I don't know how to go through the array and test if each position is empty.

I tried going through the array and comparing each position to null but that didnt help, it gave me a "incomparible type" error.

Can someone help me?