T
T-Storm
I recently reformatted my HDD, and subsequently reinstalled NetBeans IDE.
Now, none of my Java apps will function properly, because the system returns
the null value for all instances of System.in. For example, the following
method simply prints on the screen, "null". Does anyone know why?
public static void main(String[] args) throws IOException {
BufferedReader test = new BufferedReader(new
InputStreamReader(System.in));
String aLine = test.readLine();
System.out.println(aLine);
}
Now, none of my Java apps will function properly, because the system returns
the null value for all instances of System.in. For example, the following
method simply prints on the screen, "null". Does anyone know why?
public static void main(String[] args) throws IOException {
BufferedReader test = new BufferedReader(new
InputStreamReader(System.in));
String aLine = test.readLine();
System.out.println(aLine);
}