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

Aidan L.
Aidan L.
1,158 Points

How do you do this question

I don't understand its instructions

IO.java
// I have imported java.io.Console for you.  It is a variable called console.
Erick R
Erick R
5,293 Points

It means that he has already imported and created an instance of Console and stored it in a variable called console:

Console console = System.console();

This means that you are free to use the variable without typing the line above. To write to a console: console.printf(); console.println(); To read from a console: console.readLine();

This challenge first question wants you to create a variable to store a users firstName.

  firstName = console.readLine();