Java Java Basics Getting Started with Java Strings, Variables, and Formatting

Now replace <YOUR NAME> in the console.printf expression with the firstName variable using the string formatter.

What I'm I doing Wrong ?

Name.java
String firstName = "Alex";

console.printf("%s", firstName);

1 Answer

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 85,472 Points

You just need the rest of the string in your code. You need to build up the following String.

<YOUR NAME> can code in Java!