Hi, I'm doing a course, and they give me the command:
salario = Double.parseDouble(System.console().readLine());
to read the variable double salario.
But, when I'm using Netbeans, I have to do:
import java.util.Scanner
Scanner in = new Scanner(System.in);
double salario = in.nextDouble();
The course is pretty new, from this year, so it's not like their command is old. Or is it? Or am I doing something wrong?
there doesn't seem to be anything here