You need to copy and post the full text of error messages.it show error
If you are having problems with mismatched {}s, some IDEs have a tool you can use to find the pairing {}s
On my IDE put the cursor just before a { and press: Ctrl and ] and the cursor will move to the pairing }.
Another way to pair {}s is to print the source on a piece of paper and use a pencil to draw lines from a { to its pairing }. Start at an inner most pair and move out.
Please edit your post and wrap your code with
[code=java]
<YOUR CODE HERE>
[/code]
to get highlighting and preserve formatting.