} expected

Every opening curly brace { needs a matching closing brace }.


Check that every curly brace is a part of a pair, opening and closing.


public class Example
public void Method()

// Missing closing brace, add a } here.

It should be easy to spot missing braces with well formatted code, as opening and closing braces should be at the same indent level.


If your code is poorly formatted this could be a sign of an unconfigured IDE.

IDEs often draw vertical lines between pairs of matching braces to help distinguish between indent levels.