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

Create an integer that stores "number of people" ( Use camel case). Set the value to 3.

https://teamtreehouse.com/library/java-basics/perfecting-the-prototype/conditional-ints

I believe the answer is: int NumberOfPeople = 3; I keep getting Bummer! Make sure you create an int with the name of numberOfPeople with a value set to 3

2 Answers

Hi Hussain!

You were so close to getting the right answer! The question required a variable named 'numberOfPeople' and you answered with the variable name 'NumberOfPeople'.

It is a convention in Java to camel case variables which means that the first word isn't capitalised but every word that comes after it is!

I hope that this helps you out!

-Luke

It worked! Thank you very much Luke!

I am glad to have been able to help! Keep up the good work.