I'm new to java so I might be missing something obvious. I'm trying to create a simple command-line game in java. I use two classes:
The first handles user inputs, the second runs a math question game. When I try to run the jar file (the eclipse file runs fine), I get an error - can't be launched, and the following console print out:
Exception in thread "main" java.lang.NullPointerException at game.GameHelper.getUserInput(GameHelper.java:12) at game.MultGame.createGame(MultGame.java:18) at game.MultGame.main(MultGame.java:12) Any ideas how to fix this? I'm thinking that the problem is related to using the sysout print thing...but Im not sure. Thanks!