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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Stuart Jessiman](https://secure.gravatar.com/avatar/a81bb42b4dd7d6252688924662d1e301?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Stuart Jessiman
465 PointsYet more Workspace issues. I have checked code multiple times and all is fine. Yet it tells me a ; is missing. Bla......
The test is giving me errors. When first given the 'bummer' message I assume it is me that has caused the issue. But I have checked the code (it isn't lengthy) and there is no problem. Especially it pointed to a line and said the System.exit(0); needed a ';'. It's there and in the right place. As a UX Designer, I so want to make some changes. I get the code logic here, I just find it difficult to achieve what I want to achieve and navigate to points on the course I may wish to revisit - say if I"ve been away for a while.
The tutor is excellent, but the rest is a bit of a bother.
int numberOfPeople = 4;
if(numberOfPeople<4 )
{
console.printf("You are not old enought");
System.exit(0);
}
if (numberOfPeople >4)
{
console.printf("Your table is ready");
}
1 Answer
![Jason Anders](https://uploads.teamtreehouse.com/production/profile-photos/3512822/micro_Jason_s-Pic.jpg)
Jason Anders
Treehouse Moderator 145,859 PointsHey Stuart,
The code itself is fine, but remember the instructions for Task One?
Create an integer that stores "number of people" ( Use camel case). Set the value to 3.
You changed the value of that variable to 4... so now the Code Checker will return the Bummer!
Also, for some reason, the challenge is passing Task Two and Task Three even though what you coded is not what the tasks are asking for, which is very strange. (Tagging Craig Dennis to have a look).
There should only be one if statement
(asked for in Task two) and the exit
method asked for in Task Three.
Normally if you add anything that was not asked for specifically by the instructions, the task will fail, but not in this case. Anyway, for this challenge, just change the value back to 3 and, oddly, it will pass.
Just for future reference, however, Challenges are very picky, so be careful with what you code. Your code above is syntactically correct, just not in the instructions. For this challenge, the completed code (according to the instructions) would be:
int numberOfPeople = 3;
if (numberOfPeople < 4) {
console.printf("Your table is ready");
System.exit(0);
}
Keep Coding! :)