Line 19 is the cmd.equals(input.nextLine()); So I should set it as something useless then?
Type: Posts; User: illusionust
Line 19 is the cmd.equals(input.nextLine()); So I should set it as something useless then?
Exception in thread "main" java.lang.NullPointerException
at myname.youllmakefunofmeifyouseethisnamesoIwortethisinstead.Main.main(Main.java:19)
I bet this will be an easy diagnosis but I can't seem to find why I am getting a NullPointerException. I used to make things like this all the time so it's extra weird. Any help will be appreciated....