I have the following code:
game.log.fine(\"HERE\" + bestMove.get(\"score\"));
Integer bestScore = Integer.getInteger(bestMove.get(\"score\"));
game.log.fine(
I would use the Integer.valueOf(String n) method.
Integer bestScore = Integer.valueOf(bestMove.get("score"));
From this blog, the reason they gave,
Integer.getInteger(String)converts a String to a number by assuming the String is the name of a system property numeric representation. In other words.Integer.getInteger("12345")is likely to yieldnull.