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 trialgramjoirps
2,048 PointsCall the print function
Call the print function on the console object and make it print out "<YOUR NAME> can code in Java!"
String firstName = "SherShah";
console.printf("%s ,is my awesome name", firstName);
It doesn't work please help
2 Answers
Gloria Dwomoh
13,116 PointsHi Sher,
the reason why your code does not work is because it asks you to print "<YOUR NAME> can code in Java!"
but you instead printed "<YOUR NAME> ,is my awesome name"
gramjoirps
2,048 PointsSorry, I am new and didn't know that I have to be that accurate.
BTW, your support and courses are awesome. I didn't have credit card and I got one just to get access to TTH courses.
Thumbs Up!
Gloria Dwomoh
13,116 PointsWow that's great you are enjoying Treehouse, I am a student as well, but I believe the support and instructors will be happy to hear you are finding the courses awesome ^^
No worries about the mistakes, I didn't know either initially but with time I figured it out.
gramjoirps
2,048 PointsYeah I just figured that out by looking at your profile. :)
Gloria Dwomoh
13,116 PointsHa ha, all right :)
Gloria Dwomoh
13,116 PointsGloria Dwomoh
13,116 PointsHey I fixed your code a bit, if you are interested to find out how I did it check the video called "Tips for asking questions" on the right.