January 2014
Intermediate to advanced
736 pages
70h 43m
English
Method outputBarChart (lines 107–137) is nearly identical to the one in Fig. E.13. However, to output the overall grade distribution for a whole semester, the method here uses nested enhanced for statements (lines 115–119) to create the one-dimensional array frequency based on all the grades in the two-dimensional array. The rest of the code in each of the two outputBarChart methods that displays the chart is identical.
Read now
Unlock full access