Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java Java Basics Using your New Tools Multiple Strings

what 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
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Rob Bridges
Full Stack JavaScript Techdegree Graduate 35,467 Points

Hello,

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.

thanx