Java Java Basics Perfecting the Prototype Conditional ints

Shiva Lowy
seal-mask
.a{fill-rule:evenodd;}techdegree
Shiva Lowy
Full Stack JavaScript Techdegree Student 3,126 Points

I can not understand why the code if (people<4) is wrong

I can not understand why the code if (people<4) is wrong....

Conditional.java
int numberOfPeople=3;
if (

1 Answer

Where's your if statement ?

Add an if statement to see if there are less than 4 people.

if ( numberOfPeople < 4){
 console.printf("Your table is ready")
}