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 trialAbdullah Øzer
682 Pointsi dont understand The past tense verb workout
i really dont understand what its trying to tell me can someone help me understand what its trying to tell me to do ?
// I've imported java.io.Console for you. It is stored in a variable called console for you.
String name = console.readLine("Accept input from console");
String lastName = console.readline("pastTenseVerb");
4 Answers
Wendell Collins III
7,862 PointsHi Abdullah, The question is asking you to create a new variable called past tense verb, and store input using the readLine method. The first part which is correct was creating a new variable called name, and store input using the readLine method.
You are essentially doing the same thing that you did in the first step but instead of calling the variable name, you are calling it pastTenseVerb.
If you have anymore questions don't hesitate to ask.
Abdullah Øzer
682 Pointsthx for your reply but i already tried that Wendell and it didnt work String name = console.readLine("Abdullah"); String pastTenseVerb = console.readLine("Øzer"); so i dont know
Wendell Collins III
7,862 PointsFirst question are you working on the second or third part of the code challenge. If it is the second part of the challenge then this is the way that I did it. Which works when I enter it into the challenge.
If this doesn't work for you can you post what errors it is giving you? That will make it easier to pinpoint what is causing your error.
String name = console.readLine("Enter your name: ");
String pastTenseVerb = console.readLine("Enter a past tense verb: ");
If you are working on the third part of the code challenge then I can help you with that as well.
Abdullah Øzer
682 Pointsthanks alot Wendell that somehow helped that i typed the same answer as u :D