Expected statement
The compiler expected to find a statement before the end of the current scope. This error usually occurs when the left brace, designating the beginning of the current scope, or both left and right braces are missing. Ensure that the braces for the current scope are balanced.
The following example illustrates this error:
public class Simple {
void method1(int arg1) {
if (arg1==1)
// error: missing the left brace for the if statement
}
}