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 trialVoicu Gabriel
464 PointsError Oops!It looks like Task 1 is no longer passing on Java Basics, Task 2 of 4
First Task is to declare first name and it pass to task 2 Second Task: Declare another variable, naming this one the camel-cased version of "last name". Use console.readLine to store the user's last name into this new variable. What i did wrong to get the error ?
// I have imported java.io.Console for you. It is a variable called console.
String firstName = console.readLine ("Whats ur first name? ");
String lastName = console.readline ("Whats ur last name? ");
1 Answer
Yousef Gamal
Android Development Techdegree Student 174 PointsString lastName = console.readline ("Whats ur last name? ");
You must make L capital in readLine() method, So you should enter:
String lastName = console.readLine ("Whats ur last name? ");
Voicu Gabriel
464 PointsVoicu Gabriel
464 PointsSeems i found it myself. Second line of the code : "readLine" was with lowecase L. Hope this will help others also in the future