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 trialsven harskamp
1,207 Pointswhat to do
does somebody now what to do here
Output a sentence that takes both the noun and past tense verb using a single statement. It should look like this: name really past tense verb this coding exercise.
2 Answers
Rob Bridges
Full Stack JavaScript Techdegree Graduate 35,467 PointsHello,
In this example they are asking you to define two different String Variables.
The noun in the name variable, so it would something like String name = ""; and put whatever you want the name to be set to between the quotes.
The second part is it is asking for a past tense verb, let's use enjoying for example String pastTense = "enjoying";
Once those are declared you'll call the printf method from the console.
It will look something like console.priftf("%s is really %s this coding exercise\n", name, pastTense);
This line will pass in the values that you have defined in your variables into the string at the places where the %s identifier was used.
Hope this helps! Let me know if you have any more questions.
sven harskamp
1,207 Pointsthanx