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 trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Austin Schumacher](https://secure.gravatar.com/avatar/d3b0413c2e2795855699d9ff2d115114?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Austin Schumacher
155 PointsOutput a sentence that takes both the name and past tense verb using a single statement.
String name = console.readLine("Enter your name" ); String pastTenseVerb = console.readLine("Enter a past tense verb" ); console.printf("%s is very %s", name, pastTenseVerb);
// I've imported java.io.Console for you. It is stored in a variable called console for you.
String name = console.readLine("Enter your name" );
String pastTenseVerb = console.readLine("Enter a past tense verb" );
console.printf("%s is very %s", name, pastTenseVerb);
3 Answers
![Jason Anders](https://uploads.teamtreehouse.com/production/profile-photos/3512822/micro_Jason_s-Pic.jpg)
Jason Anders
Treehouse Moderator 145,859 PointsHi Austin,
You have syntactically correct code; however, you are not following the instructions exactly. Instructions are very specific and must be followed explicitly, or you will get the Bummer!
.
If you look at the error you are receiving for the third task
Please make sure that you are following the format
__name__ really __pastTenseVerb__
described above
That should be a huge hint. The challenge is looking for a very specific string, but you are using "%s is very %s"
instead of what the instructions specifically ask for "%s really %s this coding exercise."
.
Once you fix that up, the rest is good to go. :)
Keep Coding!
![Martin Gallauner](https://uploads.teamtreehouse.com/production/profile-photos/5110962/micro_14212135_1313991421944806_6069312473825295898_n.jpg)
Martin Gallauner
10,808 PointsCan you please tell us on which exercise you are working on and what is your problem?
Thanks
![Rheo Tan](https://secure.gravatar.com/avatar/304954ab9432695ee1e1cdebf8938eb2?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Rheo Tan
3,639 PointsAren't you supposed to have a double space before closing the quote as well? String name = console.readLine("Enter your name: "); String pastTenseVerb = console.readLine("Enter a past tense verb: ");