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 trialALI 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
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
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
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
183 Pointsyes it helps me alot thanks dennis