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 trialNalini Ravikumar
1,991 PointsCall the printf method on the console object and make it write out "<YOUR NAME> can code in Java!"
console.printf(firstName);
// I have setup a java.io.Console object for you named console
String firstName = "Ravi";
console.printf(firstName);
2 Answers
Jennifer Nordell
Treehouse TeacherHi there! Take another look at the instructions of the challenge. It wants you to print out "Ravi can code in Java!". Your code simply prints out "Ravi" and nothing more. There are a couple of ways to achieve the correct result. I believe you can get the solution with these hints, but let me know if you're still stuck!
John Paige
7,436 PointsSo far the code is looking good. Like Jennifer Nordell is getting at you can try editing the console.printf line to match what the objective says to print out, besides your firstName.