Analyze the outcome of this Java code:
String text = System.console().readLine(); int number = Integer.parseInt(text);
Error in code
Reads a string without conversion
Reads an integer directly
Reads a number as a string and converts it to an integer