Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java Java Basics Perfecting the Prototype Looping until the value passes

Sebastian Bernal
Sebastian Bernal
442 Points

I am trying to complete a loop but this error seems to be popping up. JavaTester.java:128: error: illegal start of expre

JavaTester.java:128: error: illegal start of expression } while(); ^ 1 error

1 Answer

It looks like you may be missing an opening { for that final }! Illegal start of expression error happens when your code doesn't follow the syntax of the language. Commonly due to missing a closing or opening bracket!

If you find this isn't the case, would you mind providing the rest of the code you used for the challenge question?