Compiler Error J0098

Attempt to access non-existent member of 'identifier'

The compiler detected an array member specified, but could not identify it. This error usually occurs when an attempt to reference the length method of an array is mistyped. This error can also occur when an attempt is made to call a method in an array of objects but the call does not reference an element of the array.

The following example illustrates this error:

public class Simple {
   
   public void method1() {
      String j[] = new String[10];
      //intialize the array elements here
      String str = j.toUpperCase();
      //error: missing array brackets '[]'
   }
}