I'm confused on this question what is it asking?
This question is hard?
// I have imported java.io.Console 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);
Mark SebeckTreehouse Moderator 25,357 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.