hi all

I have a question. I am still trying to build this game/program but I declared a console and was told to import it which i did, the problem is that I am constantly getting an error line underneath the console, can u guys tell me why is that. this is what i did

Console input = new Console(); the red line is underneath the Console with the two asterisk. can someone tell me why I am getting even though i have import it

30 seconds with the API doc will tell you that the Console class does not have any public constructors. You will also find the following helpful comment:

"If this virtual machine has a console then it is represented by a unique instance of this class which can be obtained by invoking the System.console() method."