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 trialahmed alghafli
3,446 PointsCreate an integer that stores "number of people" ( Use camel case). Set the value to 3. how i do it ?
int number of people = 3; Is this correct ?
int number of people = 3;
ahmed alghafli
3,446 PointsI forgot it but i will remember it Thanks
1 Answer
Bhupend Patil
25,918 Points( Use camel case) ?
eg. camel case for Java Basics is javaBasics
eg2. camel case for number in channel is numberInChannel
I hope it helps you.
ahmed alghafli
3,446 PointsThanks it is helped
James Carney
16,255 PointsJames Carney
16,255 Pointsnot sure what this is for, but you that isn't the way to define your variable. You want it defined like this
int numberOfPeople = 3
Camel case is when you have multiple words compressed together and the first letter of each word (after the first word) is capitalized.