Compiler Error J0107

Missing array dimension

The compiler detected the initialization of an array, but failed to detect a valid array dimension. This error usually occurs when an array is defined but one of the dimensions of the array is not defined. In order to use an array, all dimensions must be defined.

The following example illustrates this error:

public class Simple {
   
   public void method1() {
   
      int [][] i = new int[][12]; 
      // error: missing first array dimension
   }
}