Mein Eclipse Programm gibt mir 1 Fehler aus:
Exception in thread "main" java.lang.NullPointerException
at Start.main(Start.java:3)
Es klappt aber ohne Probleme wenn ich den Code per hand mit CMD javac kompiliere und starte
Hat jemand eine Ahnung woran das liegen könnte?
Danke im Vorraus
Exception in thread "main" java.lang.NullPointerException
at Start.main(Start.java:3)
Es klappt aber ohne Probleme wenn ich den Code per hand mit CMD javac kompiliere und starte
Java:
public class Start {
public static void main(String[] args){
int i = Integer.parseInt(String.valueOf(System.console().readPassword()));
System.out.println(i);
}
}
Hat jemand eine Ahnung woran das liegen könnte?
Danke im Vorraus
Zuletzt bearbeitet: