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 Getting Started with Java IO

I dont´t undestand the question

I'm doing everything that he does on the film but can't get it to work in the exercise

5 Answers

A Y
A Y
1,761 Points

The camel version means start your variable by a lower case letter and then start your next word by upper case letter.

Lower case Upper case Lower case ... etc That’s why they call it camel case.

Example: first name in camel case will be firstName team tree house will be teamTreeHouse And so on.

Here: String firstName; Is what you are asking for.

Ask user to enter the first name then store it in the camel case first name:

String firstName = console.readLine (“Enter your name? “);

Hope this help but if you need more clarification I will explain more or show you the codes in order to make it works.

Review the video again but slow it and open the workspace and try to write code at the same time you watching Dennis will help.

Regards, Amir

A Y
A Y
1,761 Points

Please try:

String firstName = console.readLine("what is your name? ");

console.printf("hello, my name is %s\n", firstName);

console.printf("%s is learning how to java\n", firstName);

I am sure it will work, hope this will help you, Amir

thank you very much

A Y
A Y
1,761 Points

Love Wallander,

Can you write which exercise not working for you? I want to see the codes.

Amir

Declare a variable that is named the camel-cased version of "first name". Store the user's first name into this new variable using console.readLine. It's in the course Java Basics