Java Java Basics Getting Started with Java IO

I am having trouble doing the last section please help with the correct answer

I am having trouble doing the last section please help with the correct answer

IO.java
// I have imported java.io.Console for you.  It is a variable called console.
String firstName = console.readLine("what is your first name?");
String lastName = console.readLine("what is your last name?");
Console.printf("First name:", lastName);

1 Answer

rydavim
MOD
rydavim
Treehouse Moderator 16,912 Points

It looks like you currently have a compile error due to the casing of console.printf. Fixing the typing to a lower-case c should get you to a more helpful error.

Console.printf("First name:", lastName); // lower case c here

That should get you on your way, but let me know if you run into trouble and we can walk through a solution. Happy coding!