Compiler Error J0019

Expected identifier

The compiler expected to find an identifier before the name of a class, interface, variable, or method declaration. This error usually occurs when the type is accidentally omitted in a declaration.

The following example illustrates this error:

public class Simple {
   
   private i;  // error: type omitted
   
}