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 trialBenard Nyambok
284 PointsArgument spelling
what am i doing wrong here?
String firstName="larry";// I have setup a java.io.Console object for you named console
console.printf("YOUR NAME");
3 Answers
Rick Gleitz
47,876 PointsThe instructions say: Call the printf method on the console object and make it write out "<YOUR NAME> can code in Java!"
So the message part inside the parens needs to look like: "<YOUR NAME> can code in Java!"
Just copy and paste it right in there.
Next, replace the <Your Name> part with %s Then after the string, put a comma and the variable firstName
Don't forget the semi-colon after the closing paren!
Hope this helps!
Benard Nyambok
284 Pointsthank you rick i figured it out
Rick Gleitz
47,876 PointsYou're welcome!