Hi guys. I am very new to java and I have a question. I have created a 2-dimensional array filled with a bunch of zeroes. The user can input values into the cells, overwriting the zeroes. My question is how do I determine the location of the first cell on the first row with a value of 0? Below is an example array. I want to return the number 3 (the index of the first zero).
1 2 3 0 4 5
1 2 3 4 5 6
1 2 3 4 5 6




Reply With Quote