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 the value of 3 to number of people.

int Number of People = 3;

Conditional.java
int NumberofPeople = 3;

2 Answers

andren
andren
28,558 Points

The problem is the name of the variable, when using camel case you are meant to capitalize the first letter of each word in the variable name except for the first letter of the first word.

So number of people in camel case would become numberOfPeople.

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hey Glen,

Remember how camelCase works... First word is lower-case and every word after is upper-case. So, the problem lies with the variable name. Right now it's upper - lower - upper.

Just fix that up and you're good to go. :)

Keep Coding! :dizzy:

It worked thanks alot!