Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Elvin Roldan
1,473 PointsCant seem to implemnt printf Method in Task 2 (lesson 1). console.printf("%s is Coding, firstName");
I have this code for Task 2, but it always returns a syntax error. i checked and view the video for errors but I cant find the errorin the syntax consecuently cant continue with the next task.
String firstName = "Elvin";
console.printf("%s is Coding, firstName");
// I have setup a java.io.Console object for you named console
String firstName = "Elvin";
console.printf("%s is Coding", firstName);
3 Answers

Fahad Mutair
10,359 Pointshi Elvin Roldan , you don't have syntax error but he's askin you to type exactly same message
make it write out "<YOUR NAME> can code in Java!"

Michael Walker
45,428 PointsHi Elvin,
You definitely do not have a syntax error. The problem is your output doesn't match the output of what the challenge is. Simply change the portion of your printf method from "is Coding" to "can code in Java!" and you will pass just fine.

Elvin Roldan
1,473 PointsThanks for the help definitely wright more careful next time with the instructions.
Elvin Roldan
1,473 PointsElvin Roldan
1,473 PointsThank you for the help, your wright my action didn't match the instructions.