Expected method body
The compiler expected to find a method body immediately following a method declaration. This error usually occurs when the braces surrounding the method body are missing. This error can also occur when the method was intended to be abstract or native, but the abstract or native keyword was mistakenly omitted from the method declaration.
The following example illustrates this error:
public abstract class Simple {
public void method1();
// error: 'abstract' omitted
// This error would also exist if the class is not declared 'abstract'
}