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!
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
Zachary Martin3,545 Points
Pez, Example. java won't compile. Reached end of file while parsing.
Followed along in the example pez dispenser all the way to the end and I keep getting the error message reached end of file while parsing which is usually fixed by adding a bracket but nothing works.
Seth Kroger56,412 Points
You're missing a curly brace at the end of the file. That error is almost always caused by mistakes in matching curly braces.
Tyler Combs15,525 Points
Tip: You can save a snapshot of your workspace and share the link to it so people can view your complete files in workspace without you having to copy/paste a bunch of code. It should be one of the 3 or so icons in the top right of your workspace. When others are viewing your snapshot they can also edit your code and compile and run the program. (it only saves changes client-side)