We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e54458e commit a9b7600Copy full SHA for a9b7600
1 file changed
ch08/Histogram.java
@@ -68,6 +68,12 @@ public static void main(String[] args) {
68
for (int score : scores) {
69
counts[score]++;
70
}
71
+
72
+ /* For the foreach loop above, write a method called histogram that
73
+ * takes an int array of scores from 0 to (but not including) 100, and
74
+ * returns a histogram of 100 counters. Generalize it to take the number
75
+ * counters as an argument.
76
+ */
77
78
79
0 commit comments