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

TreeStory.java:19: error: reached end of file while parsing }

Hi!Have follow exactly lesson's steps,my screen is the same words and symbols,saw the answers about the error:reached end of file while parsing },but still a mistake.Don't know what else to try. Thanks for any help.

Hi Eleni,

please provide the code you have written so far, so we will be able to help you.

3 Answers

Craig Dennis
STAFF
Craig Dennis
Treehouse Teacher

Usually a sign that you are missing a closing }...but if you share your code we can help!

Hi Craig and Jan,thank you very much for your quick response! The code i have writen : String age AsString = console.readLine("How old are you" ?) int age = Integer.parseInt(ageAsString); if (age < 13) {

//Insert exit code console.printf("Sorry you must be at least 13 to use this program.\n"); System.exit(0); }

Hi Eleni Minadaki,

  1. it looks like you have a space between "age" and "AsString".

  2. You also have a "?" after the """.

Are these an errors or typos?