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

Daniel Zimmerman
Daniel Zimmerman
210 Points

What am I doing wrong? Utterly confused here

Can someone explain this to me?

IO.java
// I have imported java.io.Console for you.  It is a variable called console.

String FirstName - console.readline ("What is your Name?");

Console.printf ("Hello, my name is the camel-cased version"); 

3 Answers

Antonio De Rose
Antonio De Rose
20,885 Points
String FirstName - console.readline ("What is your Name?");//check how do you write for readline (check for case), 
//and firstname, how to set with camel case

Console.printf ("Hello, my name is the camel-cased version"); //not needed
Daniel Zimmerman
Daniel Zimmerman
210 Points

Alright so console and printF is not needed I understand this bit. The first string:

console.readLine perhaps I forgot the capital L? That's all I got from this

Antonio De Rose
Antonio De Rose
20,885 Points

your variable should be in camelcase, the way you have expressed(FirstName) is not camelcase.

Daniel Zimmerman
Daniel Zimmerman
210 Points

Hi Antonio, this is really bad I didn't even know what camelcase is untill I googled it. Why is it not camelcase? According to the screenshot I see a capital F and a captial N with the FirstName.

The capital is written for each word First and Name.

Why is the first name not camelcased according to you?

Thanks

Antonio De Rose
Antonio De Rose
20,885 Points

https://en.wikipedia.org/wiki/Camel_case

please go through the above link, to get an understanding on what is a camel case, it is basically, practice of writing compound words, where the capital letter, starts from the middle, and not first.