Compiler Error J0016

Expected '{'

The compiler expected to find a left brace in the position indicated by the error message. This error usually occurs when the left brace is accidentally omitted from the beginning of a class declaration or method code block. This error is often caused on the line previous to the line the compiler has reported the error on. Ensure that all braces match and compile again.

The following example illustrates this error:

public class Simple // error: '{' omitted
   
   public void method1() {
      // do something meaningful
   }
}