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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Mark John](https://secure.gravatar.com/avatar/ec181854393f69e776368f134bfe3302?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Mark John
Courses Plus Student 771 Pointsi need help here! challange question for java
i just started this treehouse stuff and its looking preety intresting .i came across some challenge questions and i encountered some difficulties plz i need some help
// I have setup a java.io.Console object for you named console
String firstName = " mark";
console.printf("mark can code in java");
2 Answers
![Luciano Bruzzoni](https://secure.gravatar.com/avatar/b9b1b829be4bae27afb9f67825dff8eb?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Luciano Bruzzoni
15,518 PointsHi! I'm not sure if this is what you are looking for, but I think they want you to use the variable you just created, firstName, in the printf function like this:
console.printf(firstName + " can code in java");
So instead of having the same name always showing up (hard coded), you can change the variable and it will print accordingly. That way if you have alot of code that uses the same name in different parts, instead of changing the name for every item, you just change the variable once and done! That's one of the basic uses of variables.
Hope that helped!
![Mark John](https://secure.gravatar.com/avatar/ec181854393f69e776368f134bfe3302?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Mark John
Courses Plus Student 771 Pointsthanks Luciano Bruzzoni, i appreciate the help. i have finally past that challange
![Luciano Bruzzoni](https://secure.gravatar.com/avatar/b9b1b829be4bae27afb9f67825dff8eb?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Luciano Bruzzoni
15,518 PointsAnytime, happy to help! Cheers