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 trialMarcos Casado
550 PointsBummer! Make sure that you use the `firstName` variable as the second argument
Yelp!
// I have setup a java.io.Console object for you named console
String firstName = "Marcos" ;
console.printf("<%s> can code in Java", firstName) ;
3 Answers
Jennifer Nordell
Treehouse TeacherHi there! While it's generally great to take these challenges very literally, you went a little above and beyond here. They don't actually mean to print out the angle brackets. Your code will print out "<Marcos> can code in Java", but they want it to print out simply "Marcos can code in Java".
Hope this helps!
Fadi Chehade
239 PointsI fixed it by Typing this: // I have setup a java.io.Console object for you named console String firstName = "Fadi" ; console.printf("%s can code in Java!", firstName) ;
Important: you need to type "can code in" in lower case!
Hope it works for you all :)
aoeu aoeuaoeu
697 PointsMarcos is right. I tried every other way. Nothing help. Got really frustrated with TeamTree. They should change this. The only way is as Marcos wrote. console.printf(firstName, "%s blah blah" - does not work. firstName + " %s blah" - does not work. I have tried several other ways and nothing worked.) They should at least have hints if as in codeacademy. I got stuck there and close the site. I did not want to come back to treehouse.