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

Java Java Basics Getting Started with Java Strings, Variables, and Formatting

Call 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

Hey 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.

2 Answers

Hi 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"

Sorry, 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!

Wow 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.

Yeah I just figured that out by looking at your profile. :)

Ha ha, all right :)