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 trialLuis Delacerda
196 Pointswhat do i do??
sdfsf
// I've imported java.io.Console for you. It is stored in a variable called console for you.
String name = console.readLine("Luis");
String pastTenseVerb = console.readLine("Enter a past tense verb: ");
Lukas Baumgartner
14,817 PointsIn the first line, you have to prompt for the name of the user. You just write out Luis, i don't think anyone would know what to do with that... Try something like ("What's your name: "); Second line looks good.
After that, you can print out your String using the printf method. We use printf because you can use placeholders like %s for Strings, or %d for decimal integer values.
Alexander Køpke
5,065 PointsAlexander Køpke
5,065 PointsYou don't write what is wrong but I assume you need to write it out. console.printf("%s is %s etc etc", name, pastTenseVerb); I don't remember what the text said exactly but you can read that in the instructions. Good luck!