Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Basics Perfecting the Prototype Censoring Words - Looping Until the Value Passes

Michel Spaniolo
PLUS
Michel Spaniolo
Courses Plus Student 1,850 Points

hi , for some reason the code doesnt run all the way through for me past the censor part .

https://w.trhou.se/d1rabgewtw I tried even commenting out system exit(0)..But upon entering a correct noun the code doesnt go to the next block of adverb and TreeStory

1 Answer

Steven Parker
Steven Parker
231,275 Points

You're running an old copy of the program. Your latest changes have errors and have not successfully compiled yet.

On line 35, the quotes are not matched and there is a missing ending quote on the last string. Also, there are a couple of extra closing braces at the end of the program.

Fix the errors and recompile and then you can run the latest version.