I have a 3 x 3 array private int[][] board
I want to get the index [i][j] as a integer representing the position of the element
For example
[0][0] = 0
[1][1] = 4 -- (middle spot)
[2][0] = 6 -- (last line, first item)
Is there an easy way instead of manually doing it for each position? Thanks