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)
![ISAIAH S](https://secure.gravatar.com/avatar/834425d12704aacc97fef9910f99ad09?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
ISAIAH S
1,409 PointsERROR IN CHALLENGE
I re-did the challenge, and this code should work, but it's not:
// I've imported java.io.Console for you. It is stored in a variable called console for you.
//task 1:
String name = console.readLine("Enter a name: ");
//task 2:
String pastTenseVerb = console.readLine("Enter a past tense verb: ");
//task 3:
console.readLine("%s really %s this coding exercise", name, pastTenseVerb);
All it's saying is: '
Bummer! Looks like you forgot to use the %s
formatter'.
![Steve Hunter](https://uploads.teamtreehouse.com/production/profile-photos/806282/micro_Ironman.jpg)
Steve Hunter
57,712 PointsCan you add a link to the challenge, please, Isaiah?
Thanks,
Steve.
1 Answer
![Steve Hunter](https://uploads.teamtreehouse.com/production/profile-photos/806282/micro_Ironman.jpg)
Steve Hunter
57,712 PointsIt isn't a readLine
, is it? You're outputting, not inputting?
Steve.
![ISAIAH S](https://secure.gravatar.com/avatar/834425d12704aacc97fef9910f99ad09?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
ISAIAH S
1,409 PointsThanks, I changed it to printf
, and it worked.
![Steve Hunter](https://uploads.teamtreehouse.com/production/profile-photos/806282/micro_Ironman.jpg)
Steve Hunter
57,712 PointsAwesome! Good work!
Steve.
ISAIAH S
1,409 PointsISAIAH S
1,409 PointsThis was the task:
Challenge Task 3 of 3
Output a sentence that takes both the name and past tense verb using a single statement. It should look like this: name really past tense verb this coding exercise.