Skip to content

Commit a9b7600

Browse files
authored
Update Histogram.java
1 parent e54458e commit a9b7600

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ch08/Histogram.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ public static void main(String[] args) {
6868
for (int score : scores) {
6969
counts[score]++;
7070
}
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+
*/
7177
}
7278

7379
}

0 commit comments

Comments
 (0)