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
Eleni Minadaki
3,687 PointsTreeStory.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.
3 Answers
Craig Dennis
Treehouse TeacherUsually a sign that you are missing a closing }...but if you share your code we can help!
Eleni Minadaki
3,687 PointsHi 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); }
ISAIAH S
1,409 PointsHi Eleni Minadaki,
it looks like you have a space between "age" and "AsString".
You also have a "?" after the """.
Are these an errors or typos?
Jan Van Raemdonck
22,961 PointsJan Van Raemdonck
22,961 PointsHi Eleni,
please provide the code you have written so far, so we will be able to help you.