Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Seth Thompson
183 PointsJava Basics (Challenge Task 2 of 3)
In Java Basics (Challenge Task 2 of 3), “Call the printf method on the console object and make it write out "<YOUR NAME> can code in Java!”, I am writing:
String firstName = "Seth"; console.printf("My name is %s\n", firstName);
When it checks the work, it states, “Bummer! Check the spelling of your argument to the printf method. Make sure it is printing out what the instructions are asking for.”
However, when I check in the work space area, it works fine. Please advise.
1 Answer
Seth Thompson
183 PointsOK. I did not read the question properly. Here is the solution:
String firstName = "Seth"; console.printf("%s can code in Java!", firstName);
markhsia
2,139 Pointsmarkhsia
2,139 PointsYeah, I was going to tell you that.