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

Luis Paulino
Luis Paulino
Pro Student 1,779 Points

I'm sooo confused

I'm sorry, but I really want to learn code!!!!!
String firstName = "Luis";
console printf("can code Java %s/n", firstName);

1 Answer

Steve Hunter
Steve Hunter
Treehouse Moderator 55,520 Points

Hey Luis,

In your output string, add the %s where you want you name to appear. So put it at the beginning of the output string. The %s placeholder marks the place where the contents of your variable will be put.

Also, use dot notation to join console to printf. (replace the separating space with a dot).

Let me know how you get on.