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

Declare another variable, naming this one the camel-cased version of "last name". Use console.readLine to store the user

Declare another variable, naming this one the camel-cased version of "last name". Use console.readLine to store the user's last name into this new variable.

IO.java
// I have imported java.io.Console for you.  It is a variable called console.
String lastName = console.readLine("I love icecream "); 
console.printf("My name is Harmeet Chahal \n");

String firstname = console.readLine("What is your name?  ");

1 Answer

What you have for task 2 will pass. But the checker is verifying task 1 before task 2. Here is where you have an error: firstName needs to be camel case.