Welcome to the Treehouse Community
Looking to learn something new?
juan lourido460 Points
Using the console's printf method, display a message that says, "Last name:" followed by the last name that the user...
// I have imported java.io.Console for you. It is a variable called console. String firstName = console.readLine("Juan"); console.readLine("%s likes water\n", firstName); String lastName = console.readLine("Lourido"); console.readLine("What is your last name? %s", lastName); console.printf("What is your first name sir? %s", firstName); console.printf("What is your last name sir? %s", lastName);