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

Luis Paulino
Luis Paulino
Pro Student 1,779 Points

I'm not sure what to do?

I keep rewatching the old videos. i'm lost
String firstName = "Luis";
console.printf("%s/n can code in Java",firstName);

1 Answer

Jason Anders
Jason Anders
Treehouse Moderator 131,416 Points

Hi Luis,

You're doing really well, but you seem to have inserted a couple incorrect symbols. It should only be %s. I'm assuming you were trying to add a new line break with the /n? First, the challenge didn't ask for one, and second, the new line is \n (note the backslash, not forward slash). Once you delete that bit of incorrect code, your code does pass both Tasks.

Nice job! :) :dizzy: