NullPointerException in Console's readLine()
- by dmindreader
This:
Console c = System.console();
String readline;
String u = c.readLine("%s", "args");
Throws a NullPointerException. Yet the signature of the method is:
public String readLine(String fmt, Object... args)
Why's this exception being thrown?