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 Reviewing Our Feedback

I keep getting "error: reached end of file while parsing". Any suggestions as to how to fix this problem?

I have double checked and made sure that my program matched the instructor's program in the video. This is the second lesson now where the compiler fails to show my program. Suggestions are greatly appreciated. Thanks!

1 Answer

Daniel Vargas
Daniel Vargas
29,184 Points

You're probably missing a curly brace {} at some point, however it would be nice to see your code to check what's happening.

Thank you Daniel! I appreciate the response. It wouldn't surprise me if it's something that simple lol. I'll provide a snapshot once I get home. Thanks!