Expected 'class' or 'interface'
The compiler expected to find either class or interface used within the corresponding declaration. This error usually occurs when the keywords are accidentally omitted from a class or interface declaration. Another possible cause of this error is unbalanced scoping braces.
The following example illustrates this error:
public Simple{ //error: missing the 'class' keyword
//Do something here
}
This example illustrates this error caused by unbalanced scoping braces:
public class Simple {
// do something meaningful
}} // error: additional '}' not needed