I have the question of how to return a coordinate value of an index String array [] [] in java how could i do it I have the following function and it does not work for me.
public String [][] getCasillaVacia() {
for (int i=0; i < estado[0].length; i++) {
for (int j=0; j < estado[i].length; j++) {
if(estado[i][j].replace(" ", "").equals("0")) {
System.out.println("Casilla encontrada en la posicion: " + i + "," + j);
return estado[i][j];
}
}
}
}