title: java.lang.ArrayIndexOutOfBoundsException: 0 - I cant figure out why the code is running out of bounds
body: <p>i am getting the error 
  Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
  This is a 2 part program. a service file, and a client file. (for a school project)</p>
  
  <pre><code>public String[][]gameBoard(int rows, int columns)
  {
  
      for (rows = 0; rows&lt;gameBoard[0].length; rows++)
      {
  
         for (columns = 0; columns&lt;gameBoard[0].length; columns++)
         {
            gameBoard[rows][columns]=""; //initializes the values of the string array (gets rid of null)
            System.out.print(gameBoard[rows][columns]+"_ ");
         }
         System.out.println();
      }
      return gameBoard;
   }
  </code></pre>
  
  <p>Is the part that is getting the error, (making and printing a board, based on user input).</p>
  
  <p>is how i am calling it in the client file.
  How or what is causing this to go out of bounds?</p>
  
  <p>Thank you!</p>