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 trialAgustinus Wellson Tengourtius
564 PointsNot able to find this syntax error. What actually when wrong with this code?
I have managed to put a condition to the code, however, it seems like it has a problem printing the "Your table is ready". Would you identify where is the syntax error. In the preview section, it shows that there is a problem in "console.printf"
int numberOfPeople = 3;
if(numberOfPeople<4){
console.prinf("Your table is ready \n");
}
2 Answers
rudyrbastari
5,212 Pointsi see you write "printf" wrong. it should be "printf" not "prinf". (if this helps you, thx)
Agustinus Wellson Tengourtius
564 PointsAlright thanks, Yeah its due to my carelessness. I tried to rewrite the code again and it works. Thanks for the help!
rudyrbastari
5,212 Pointsyour welcome.
rudyrbastari
5,212 Pointsi hope you enjoy learning in treehouse