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

Create 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 ?

Conditional.java
int number of people = 3;
James Carney
James Carney
16,255 Points

not 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.

I forgot it but i will remember it Thanks

1 Answer

Bhupend Patil
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.

Thanks it is helped