Kendhall Lebron RuizPro Student 1,143 Points
It says to create a new variable that accepts input from the console using the readLine method, but I don't know what I'm doing wrong
// I've imported java.io.Console for you. It is stored in a variable called console for you. String name = console.readLine();
KRIS NIKOLAISEN53,389 Points
If you check the preview you see:
JavaTester.java:116: error: method readLine in class MockConsole cannot be applied to given types; String name = console.readLine(); ^ required: String,Object found: no arguments reason: actual and formal argument lists differ in length 1 error
So the checker is expecting an argument for readLine.
String name = console.readLine("Enter something");