Welcome to the Treehouse Community
Looking to learn something new?
On challenge task 3 of 3: My answer is: console.printf ("%s can code in Java!", firstName). Am I doing this right???
On challenge task 3 of 3 for the Name.java questions, my answer appears to be unacceptable. I'm wondering what am I doing wrong after reviewing the video several times.
// I have setup a java.io.Console object for you named console String firstName = "Brandon"; console.printf ("Brandon can code in Java!"); console.printf ("%s can code in Java!", firstName);
They want you to surround your name in ">" and "<".
They are expecting the output string "<Brandon> can code in Java!" using %s and not hard-coded.