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 Java Basics Perfecting the Prototype Conditional ints

joseph bonsignore
joseph bonsignore
779 Points

conditional ints java

im on task 2 on conditional ints on the java basics course. I don't know what do, please help

Conditional.java
int numberOfPeople = 3;

1 Answer

João Elvas
João Elvas
5,400 Points

Hello,

I am not doing that course, but I have 5 years of Java programming xp.

So the task is asking you to make an if statement that checks "numberOfPeople < 4", if that is true, then it prints out “Your table is ready”, that's an hint! You can do it come on... :p :thumbsup: