I've got a HashMap of Integer[], Integer[]. One of the entries is:
WEIGHTS.put(new Integer[]{0,0,0,0,0}, new Integer[]{20,20,15,15,10,10,5,5});
I then call:
probabilities = WEIGHTS.get(sheriffAndBanditPositions);
where sheriffAndBanditPositions is:
Integer[] sheriffAndBanditPositions = new Integer[]{0,0,0,0,0};
This results in probabilities being null. Why is this? How can I check if a matching Integer[] key is in the HashMap if the above isn't possible? Thanks!