I have the following problem: method readLine() or nextLine(), nextInt(), etc. throw an exception: NullPointerException.
I use the NetBeans IDE (if it matters).
public static void Reading()
{
    String qq;
    qq = System.console().readLine();
    System.console().printf(qq);
}
 
     
     
     
    