Java Java Basics Getting Started with Java IO

i have a problem using this work Space

hey , i am used to use an IDE and i do not know how does this work space works , what do you recommend me to do ?

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

1 Answer

adrian miranda
adrian miranda
13,189 Points

They are trying to make it easier for you to get started, by not having you create the whole class (or install an IDE). So essentially, you need to enter code, just as if you were inside the middle of a method, which had already created the console variable. In the particular case, you would probably enter something like:

String firstName = console.readLine();

Does that help? You don't have to worry about creating the project or the class or the method, you can pretend all of that has been done for you, and you just need to write a line or two of code.

thanks adrian , it helped a lot !