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)
![ALI RAZA](https://secure.gravatar.com/avatar/0f05b0c2b797856c3caf91f92c18274b?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
ALI RAZA
183 PointsI don't know what's going wrong
give me a right code or a better suggestion
// I've imported java.io.Console for you. It is stored in a variable called console for you.
String name=console.readLine("name");
String pastTenseVerb=console.readLine("done");
String really=console.redLine("really");
console.printf("%s %s %s ",name,really,pastTenseVerb);
3 Answers
![ALI RAZA](https://secure.gravatar.com/avatar/0f05b0c2b797856c3caf91f92c18274b?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
ALI RAZA
183 Pointsi have to complete a challenge which is write an output ,probably like *name *really*pastTenseVerb...but i can"t get whats wrong with my code or what they really want to write from me
![doug o'donnell](https://secure.gravatar.com/avatar/f00f56a1ba8555884304ff81fd1d9e86?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
doug o'donnell
11,729 PointsTry to get rid of the String really line. all you need is the first two lines then you will need your print line. your print line. your print line should like this console.printf("%s really %s like this code challenge", name, pastTenseVerb);
![Craig Dennis](https://secure.gravatar.com/avatar/950c867932cc1483d8aa3dad92c4cb81?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Craig Dennis
Treehouse TeacherPsst. look at this line very carefully.
String really=console.redLine("really");
What is the difference between the method that is called on console and your other lines of code?
(let me know if that hint doesn't help)
![ALI RAZA](https://secure.gravatar.com/avatar/0f05b0c2b797856c3caf91f92c18274b?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
ALI RAZA
183 Pointsyes it helps me alot thanks dennis