Welcome to the Treehouse Community
Looking to learn something new?
I'm getting this error message: Oops! It looks like Task 2 is no longer passing.
I can't move on.
// I have setup a java.io.Console object for you named console String firstName = "Rich"; console.printf(firstName, "%s can code in Java");
printf the first argument is supposed to a string, and the second a value that should be embedded in the string, having them the other way around like you have in your code is not valid.
If you fix that issue like this:
String firstName = "Rich"; console.printf("%s can code in Java", firstName);
Then your code will work.
Saif Altaleb4,114 Points
I think you need it to be flipped to work like this
"console.printf("%s can code in Java!\n", firstName);"