title: Printing 2D Array in Java
body: <p>I'm trying print a 10x10 grid, I don't need any particular symbols, just the 10x10 format.  There's actually a lot more to the whole program but right now I'm stuck on this.  I really just want to print *'s for a simple Pacman game.  I'm not good at programming at all, but I have to pass so I can graduate next semester.  Here is what I have so far;</p>
  
  <pre><code>public class Pacman {
  
      public static void main(String[] args) {
  
          int columns = 0;
          int rows = 0;
  
          int[][] grid = new int[rows][columns];
  
          for (int i = 0; i &lt; grid.length; i++){
              for (int j = 0; j &lt; grid.length; j++){
              System.out.println(grid[i][j] + " ");
              }
              System.out.println();
          }
  
      }
  
  }
  </code></pre>
  
  <p>I don't have errors in syntax or compiling, but nothing actually prints.</p>