I have a do while loop with a switch statement nested in it but for some reason the squiggly bracket at the end of the switch statement is saying it is a syntax error when it appears to be in the right place? It only says there is an error when i build it.
Try adding a semicolon (a null statement) before the closing brace of the switch block. When your code is completed, you should have some actual statement(s) in there instead.