Java: How can i determine one specific element is in the matrix
im trying to do minesweeper in java. I’m using matrix. I want to know which row and columns has mine which is “* “.
Which method can i use.
How to index a matrix with letters?
I’m trying to create with java a 7×7 matrix with numbers and letters as indexes to locate each cell. To understand it better, I’m making a field for the naval battle. The problem is that I can’t align the letters with the columns in the array. Do you have any ideas? Of course, the letters are outside the matrix, so it’s a printing problem. I can’t use any kind of GUI.