Compiler Error J0163

Array 'identifier' missing array index

The compiler detected access to an array type, but the index value was missing. To access an element of an array, you must provide a valid integer index for the array. Ensure that a valid integer is used to reference an index of the array and compile again.

The following example illustrates this error:

public class Simple {
   
   int j[] = {1, 2, 3};
   
   void method1() {
      j[] = 0;
      // error: 'j' missing index value
   }
}