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

Tyson Bledsoe
Tyson Bledsoe
871 Points

Error Message: "reached end of file while parsing"

Unless i'm overlooking something i have exactly what the guy in the video has, but i'm getting an error message and i'm not sure why.

14) String name = console.readLine("Enter name: ");

15) String adjective = console.readLine("Enter adjective: ");

16) console.printf("%s is very %s", name, adjective);

TreeStory.java:16: error: reached end of file while parsing
console.printf("%s is very %s", name, adjective);

1 error

1 Answer

It sounds like you need to add a closing brace to the very end of your code - "}" If this doesn't fix it you might post all of your code.

Tyson Bledsoe
Tyson Bledsoe
871 Points

That worked didnt notice the extra "{" i had in there