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

I dont quite get this question. What does it really want us to do

Add a variable to store a user’s first name using console.readLine. Make sure the variable is the camel cased representation of "first name".

IO.java
// I have imported java.io.Console for you.  It is a variable called console.

1 Answer

This question is testing if you remember how to create a String variable, and set it to a value using the console.readLine function. If you haven't seen these challenges before, you are supposed to type the requested code into the black text field as if it were your text editor. Then press the Check Work button to see if you got it right!

Thanks I got it