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

Stuart Jessiman
Stuart Jessiman
465 Points

Create an integer that stores "number of people" ( Use camel case). Set the value to 3. - don't understand the question.

Create an integer that stores "number of people" ( Use camel case). Set the value to 3. I don't understand the question.

Conditional.java
int = numberOfPeople = ("3");

I am a beginner myself as well, but the proper form should be: java int numberOfPeople = 3; The numberOfPeople is the name of the variable. You don't need an = after int :) Camel case means that every separate word, where you would have a space gets a capital letter. Eg. instead "number of people" you write "numberOfPeople".

1 Answer

james south
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
james south
Front End Web Development Techdegree Graduate 33,271 Points

drop the first = sign, the quotes around 3 and the () around 3. all you need to declare and initialize an integer in java is int variableName = 45; or whatever value you need.