Compiler Error J0086

'[]' cannot be applied to a value of type 'identifier'

The compiler detected array brackets used with a non-array type. Change the field to be a valid array declaration if you want to use the field as an array and compile again.

The following example illustrates this error:

public class Simple {
   
   public void method1() {
      int i = 0;
      int j, x;
   
      x = j[i]; // error: ‘j’ not declared as array
   }
}