title: Error: exception in thread 'main' java.lang.ArrayIndexOutOfBoundsException: 0
body: <pre><code>import java.util.Scanner;
  public class TestMultiDimenArray
  {
      private static int row;
      private static int column;
      public static int [][] table1 = new int [row][column];
  
      public static int [][] get ( int a, int b){
          row = a;
          column = b;
          Scanner keyboard = new Scanner(System.in);
          for (int n = 0; n &lt; a; n++){
              for (int m = 0; m &lt; b; m++){
                  table1[n][m] = keyboard.nextInt();
              }
          }
          return table1;
      }
  
      public static void display (int [][] array1){
          for (int n = 0; n &lt; row; n++){
              for (int m = 0; m &lt; column; m++){
                  System.out.print(table1[n][m] + " ");
              }
              System.out.println();
          }
      }
      public static void main(String[] args){
              get(3,3);
      }
  }
  </code></pre>
  
  <p>The program is compiled successfully but when I run it, it return the error. How can I fix it? That is all I can tell about my problem. What is wrong with the system that tells me to give more detail when that is all I can tell.</p>