I am trying to send a 2D Char-Array from my Spring-Controller to React ... it works when i use Arraylist but doesn't work with "char[ ][ ]"
so this works
@GetMapping(value = "/test")
public ArrayList<String> getTest() {
ArrayList<String> arr = new ArrayList<String>();
arr.add("Something");
arr.add("Somehow");
return arr;
and this Does not work
@SuppressWarnings("checkstyle:WhitespaceAround")
@GetMapping(value = "/newboard")
public char[][] emptyBoard(char[][] playField) {
for (char y = 0; y < playField.length; y++) {
for (char x = 0; x < playField[y].length; x++) {
playField[y][x] = (' ');
}
}
return playField;
}
List<List< Character >>