我正在尝试在 2D 字符数组的所有元素中插入一个空格。这行得通吗?
public class AsciiDisplay {
  private char [][] grid;
  public AsciiDisplay() {
    grid = new char [30][15];
  }
  public void updateGrid() {
  //Here is the code to initialize all the elements on my 2D char array with a blank space.
    for(int i = 0; i < grid.length; i++) {
      for(int j = 0; i <grid[0].length; i++) {
        grid[i][j] = ' ';
      }
    }
  }
}