Java Java Basics Perfecting the Prototype Conditional ints

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

is it ok for int =3;

Conditional.java

1 Answer

Hi there,

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,

Steve.