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 trial

Java Java Basics Getting Started with Java IO

Sebastian MESA
Sebastian MESA
623 Points

First Name Challenge task 3/4 , my code runs on workspace but in the quiz nothing works what sholud i do?

When i complete the code, with the string and the printing method nothing seems to work.. this is my code

String firstName = console.readLine("Dame tu nombre:\n"); console.printf("Tu te llamas %s \n", firstName);

I have tested it on the workspace and it runs... What should i do.. i cant carry on with the lessons.. :/

4 Answers

Craig Dennis
STAFF
Craig Dennis
Treehouse Teacher

Lo siento Sebastián. La repuesta no funciona con español aun :( Gracías por su paciencia!

Hi Sebastian,

Task 2 has you retrieving a lastName which I don't see in your code. You'll need to keep that in there for task 3 otherwise you might get an error saying that task 2 is no longer passing.

For task 3, it's looking for a specfic output. You have set it up correctly using %s in the format string but the output should be "First name: " and then what's stored in the first name variable.

You have "Tu te llamas"

Sebastian MESA
Sebastian MESA
623 Points

ohh. especific output, yes! I finally figured out! I'ill be buggin' u later!! Thanx a lot. :)

You're welcome.

Sebastian MESA
Sebastian MESA
623 Points

:D dont worry craig, thanx for being considered about the language (y)