我有一个二维Integer数组,我需要将它转换为二维字符串数组。
private Integer[][] microboardArray = new Integer[9][9];然后我有"get“方法从接口,它必须被实现。
@Override
public String[][] getBoard() {
}感谢您的帮助:)。
发布于 2018-02-28 18:04:31
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;
}https://stackoverflow.com/questions/49026565
复制相似问题