Java Java Basics Getting Started with Java IO

I'm confused on this question what is it asking?

This question is hard?
// I have imported for you.  It is a variable called console.
String firstName = console.readLine("What is your name? ");
String lastName = console.readLine("What is your last name? ");
console.printf("Hello my name is %s\n", firstName);

1 Answer

Mark Sebeck
Mark Sebeck
Treehouse Moderator 28,393 Points

The good news is that there is nothing wrong with your code. But on challenges it's really important to enter text exactly like they ask you. Instead of printing "Hello my name is " try "First name: " like it says in the directions.