Find an Online Tutor Now

Jim L.

asked • 10/22/20

'else' statement error in Java

I'm trying to write this code and I keep getting the error: Syntax error on token "else", delete this token. Yes, I've tried using {brackets} and pretty much everywhere I search online, it says that the problem occurs if brackets are not used. But I've used brackets, and the program still wouldn't compile and gives me the same error. I'd like a list of problems that could be causing that error, I hope that'd be more useful.

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.