I have a two dimensional Integer array and I need to convert it into a two dimensional String array.
private Integer[][] microboardArray = new Integer[9][9];
Then I have "get" method from interface which must be implemented.
@Override
public String[][] getBoard() {
}
Thank you for your help :).
public String[][] getBoard() {
String[][] board = new String[9][9];
for(int i=0 ; i<9;i++){
for(int j=0 ; j<9; j++){
board[i][j] = microboardArray[i][j].toString();
}
}
return board;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.