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)
![Thomas Minnick](https://secure.gravatar.com/avatar/277f6d979999bd62170c6d6e52ec2437?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Thomas Minnick
2,539 PointsThis challenge is asking me to use the %s formatter but when I do it tells me that I forgot to use it.
when I run this it tells me "Looks like you didn't use '%s' formatter"
// I've imported java.io.Console for you. It is stored in a variable called console for you.
String name = console.readLine("Whats, Your Name?");
String pastTenseVerb = console.readLine("Past tense verb");
System.out.printf("%s really %s this excercise",name);
1 Answer
![Steve Hunter](https://uploads.teamtreehouse.com/production/profile-photos/806282/micro_Ironman.jpg)
Steve Hunter
57,712 PointsHi Thomas,
I got through the challenge with code very similar to yours. You've identified why your first post didn't work as you needed to include two variables as you used two %s in your string.
The second post, doesn't have a dot between out and printf. However, I used console.printf
and that worked fine. Also, the challenge output might be expecting a precise string and you've typod the word exercise in the first post and missed a word out in the second.
This worked for me:
String name = console.readLine("What is your name?: ");
String pastTenseVerb = console.readLine("Enter a past tense verb: ");
console.printf("%s really %s this coding exercise", name, pastTenseVerb);
Steve.
![Thomas Minnick](https://secure.gravatar.com/avatar/277f6d979999bd62170c6d6e52ec2437?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Thomas Minnick
2,539 PointsThanks it didn't like the system.out.printf changing it to console.printf solved the issue
![Steve Hunter](https://uploads.teamtreehouse.com/production/profile-photos/806282/micro_Ironman.jpg)
Steve Hunter
57,712 PointsGlad you got it sorted.
Steve.
Thomas Minnick
2,539 PointsThomas Minnick
2,539 Pointson the last line I had System.outprintf("%s really %s this exercise",name ,pastTenseVerb); idk why it didn't add that but it still doesn't work.