enter image description here I am trying to get the input from user by using System.console. However, I get a NullPointerException when I run the following code (I am trying to get input from the user). import java.io.*; public class Systemlearn { public static void main(String[] args)throws IOException { Console c
Asked
Active
Viewed 27 times
0
-
1This is a known problem when launching from IntelliJ IDEA. Some hints on how you could solve it are in the linked duplicate, but according to https://youtrack.jetbrains.com/issue/IDEA-18814 the situation won't change in the near future. – Thomas Kläger Jul 05 '23 at 06:07