Compiler Error J0017

Expected '}'

The compiler expected to find a right brace in the position indicated by the error message. This error usually occurs when a class or method’s closing brace is not found. 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 {
{   
   int x,y;
   //error: no matching brace found for class