|
@@ -4,11 +4,11 @@ public class Bins {
|
4
|
4
|
|
5
|
5
|
private int[] bin;
|
6
|
6
|
private int numberOfDies;
|
7
|
|
- HashMap<Integer,Integer> binHolder;
|
|
7
|
+ HashMap<Integer,Integer> binHolder = new HashMap<Integer, Integer>();//;
|
8
|
8
|
|
9
|
9
|
public Bins(int numberOfDice) {
|
10
|
10
|
this.numberOfDies = numberOfDice;
|
11
|
|
- this.binHolder = new HashMap<Integer, Integer>();
|
|
11
|
+ //this.binHolder = new HashMap<Integer, Integer>();
|
12
|
12
|
for (int i = numberOfDice; i <= (numberOfDice * 6); i++) {
|
13
|
13
|
binHolder.put(i,0);
|
14
|
14
|
}
|
|
@@ -23,7 +23,7 @@ public class Bins {
|
23
|
23
|
|
24
|
24
|
public void incrementBin(int binNumber) {
|
25
|
25
|
|
26
|
|
- Integer value = binHolder.get(binNumber);
|
|
26
|
+ int value = binHolder.get(binNumber);
|
27
|
27
|
value++;
|
28
|
28
|
binHolder.put(binNumber,value);
|
29
|
29
|
}
|