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

Luis Paulino
PRO
Luis Paulino
Pro Student 1,779 Points

I'm sooo confused

I'm sorry, but I really want to learn code!!!!!

Name.java
String firstName = "Luis";
console printf("can code Java %s/n", firstName);

1 Answer

Steve Hunter
MOD
Steve Hunter
Treehouse Moderator 55,743 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.

Steve.