|
@@ -1,4 +1,60 @@
|
|
1
|
+import org.junit.Test;
|
1
|
2
|
|
2
|
3
|
public class Bins {
|
3
|
4
|
|
|
5
|
+ Bins(int min, int max) {
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+ Bins results = new Bins(2, 12);
|
|
9
|
+ Integer numberOfTwo = results.getBin(2);
|
|
10
|
+ results.incrementBin(2);
|
|
11
|
+
|
|
12
|
+ new Bins(2, 12);
|
|
13
|
+ Integer numberOfThree = results.getBin(3);
|
|
14
|
+ results.incrementBin(3);
|
|
15
|
+
|
|
16
|
+ new Bins(2, 12);
|
|
17
|
+ Integer numberOfFour = results.getBin(4);
|
|
18
|
+ results.incrementBin(4);
|
|
19
|
+
|
|
20
|
+ new Bins(2, 12);
|
|
21
|
+ Integer numberOfFive = results.getBin(5);
|
|
22
|
+ results.incrementBin(5);
|
|
23
|
+
|
|
24
|
+ new Bins(2, 12);
|
|
25
|
+ Integer numberOfSix = results.getBin(6);
|
|
26
|
+ results.incrementBin(6);
|
|
27
|
+
|
|
28
|
+ new Bins(2, 12);
|
|
29
|
+ Integer numberOfSeven = results.getBin(7);
|
|
30
|
+ results.incrementBin(7);
|
|
31
|
+
|
|
32
|
+ new Bins(2, 12);
|
|
33
|
+ Integer numberOfEight = results.getBin(8);
|
|
34
|
+ results.incrementBin(8);
|
|
35
|
+
|
|
36
|
+ new Bins(2, 12);
|
|
37
|
+ Integer numberOfNine = results.getBin(9);
|
|
38
|
+ results.incrementBin(9);
|
|
39
|
+
|
|
40
|
+ new Bins(2, 12);
|
|
41
|
+ Integer numberOfTen = results.getBin(10);
|
|
42
|
+ results.incrementBin(10);
|
|
43
|
+
|
|
44
|
+ new Bins(2, 12);
|
|
45
|
+ Integer numberOfEleven = results.getBin(11);
|
|
46
|
+ results.incrementBin(11);
|
|
47
|
+
|
|
48
|
+ new Bins(2, 12);
|
|
49
|
+ Integer numberOfTvelve = results.getBin(12);
|
|
50
|
+ results.incrementBin(12);
|
|
51
|
+ }
|
|
52
|
+
|
|
53
|
+ private Integer getBin(int i) {
|
|
54
|
+ return null;
|
|
55
|
+ }
|
|
56
|
+
|
|
57
|
+ private void incrementBin(int i) {
|
|
58
|
+ }
|
|
59
|
+
|
4
|
60
|
}
|