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 trialKeith Myers
720 PointsKeep getting this error message and don't know how to fix it?
TreeStory.java:34: error: reached end of file while parsing
console.printf("They are always %s %s.\n", adverb, verb);
2 Answers
James Vaughan
Courses Plus Student 4,462 PointsHi Keith,
The error you're seeing is most often causing by missing curly brackets within your code. Essentially the compiler has reached the bottom of the source file TreeStory.java and can't find the end of either the class or a method you're implementing within it.
Best approach is to start from the top and make sure that each opening brace { has a corresponding closing brace }
Hope that helps
Jordan vanThiel
529 PointsYou are probably missing a closing curly brace