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!
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
Create an integer that stores "number of people" ( Use camel case). Set the value to 3.
is it ok for int =3;
Create a variable called 'number of people' in camel case. That means you join up all the words, making the beginning of each joined word capital, except the first one. So 'camel case variable' becomes
camelCaseVariable. Do that to 'number of people'.
This is an
int so start the line with that, then put the variable name you have create. Next, use an equals sign to assign the value 3 into that. Something like:
int camelCaseVariable = value
The value is 3, so swap that across.
I hope that helps,