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 trialArezki Sadoudi
108 Pointswhat's mean""Call the printf method on the console object and make it write out "<YOUR NAME> can code in Java!" "" ???
I was tested everything
// Welcome to the Introductions program! Your code goes below here
String firstName = "java";
//thisIsAnExampleOfCamelCasing
console.printf("Hello my name is %s\n", firstName);
console.printf("I'm %s\n", firstName);
4 Answers
Steve Hunter
57,712 PointsYou're on the right track - just a couple of tweaks and you're sorted.
Try:
String firstName = "Arezki";
console.printf("%s can code in Java!", firstName);
Arezki Sadoudi
108 PointsThank you.
Steve Hunter
57,712 PointsNo problem - keep it up and if you come across problems, just shout in the forum and someone will come to help. :-)
Steve.
Admire Dhodho
5,411 Pointsi am having the same problem please help
Arezki Sadoudi
108 PointsString firstName = "your name"; console.printf("%s can code in Java!", firstName);
Ary de Oliveira
28,298 PointsDidactic Exemplo and correct
first question String fisrtName ="Ary";
second question
console.printf("Ary can code in Java");
Steve Hunter
57,712 PointsSteve Hunter
57,712 PointsSorry, that's the last step ... but you see what it is trying to do.
The second step is literally as it says in the question:
The last step then substitues the <> for your name stored in the initial variable.
I hope that makes sense!!
Steve.