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 - Using String Equality

Code block

In the video it does not show the end code block so it always says "reached end of file while parsing"

Do you need help understanding the reason for the error or what?

Dov Brodkin
Dov Brodkin
2,695 Points

Upload your code, if you are having an issue with it.

Gonzalo Torres del Fierro
Gonzalo Torres del Fierro
Courses Plus Student 16,751 Points

ahm, it is easy, every code has an order, some times you can use [ "code here..."] or some times other type, like the most popular in java{"other code here..."},(curly brace ). lets think this parenthesis like making a balance and keeping a sort of order inside, that means you got something special there (a code offcourse a method...even a coment) the compiler always check this, and if the compiler find there is no balance, like a starting parenthesis (..... and no end of it, that will be called like a "reached end of file while parsing" .... so do not make your code unbalance....close all the parenthesis, but if you forgot it, the compiler is there to help you.