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 trialJustin Townsend
4,720 PointsJava need help
I know I am close but not quite getting my hands on it
// I've imported java.io.Console for you. It is stored in a variable called console for you.
String name = console.readLine("Enter your name: Justin");
String pastTenseVerb = console.readLine("run: ");
console.printf("*name* %s really can %s *pastTenseVerb*", name, pastTenseVerb);
2 Answers
Steven Parker
231,271 PointsYou are very close indeed! But the instructions say your final output "... should look like this: *name* really *past tense verb* this coding exercise.
"
So by putting the variable names between asterisks, they are showing you where the tokens (that you already have) should go. Don't actually include those names and asterisks in the template string. Also be sure the rest of the string contains the actual words shown in the instructions.
Justin Townsend
4,720 PointsThank you for the help and the support I really appreciate it