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 trialtyler findley
630 PointsCode doesn't work for question.
Why wont this code work for exercise question: Output a sentence that takes both the name and past tense verb using a single statement.
String name = console.readLine("What is your name "); StriOutput a sentence that takes both the name and past tense verb using a single statement. It should look like this: ng pastTenseVerb = console.readLine("Enter a verb "); console.printf("%s is very %s", name, pastTenseVerb);
String name = console.readLine("What is your name ");
String pastTenseVerb = console.readLine("Enter a verb ");
console.printf("%s is very %s", name, pastTenseVerb);
1 Answer
Kai Nightmode
37,045 PointsThe last part of the code challenge is looking for a very specific sentence so the code that will pass is...
String name = console.readLine("What is your name ");
String pastTenseVerb = console.readLine("Enter a verb ");
console.printf("%s really %s this coding exercise.", name, pastTenseVerb);
Only difference is the text in the last line. You got all the hard stuff on your own so no worries. :D