Compilation: javac Histogram.java
This data type supports simple client code to create dynamic
histograms of the frequency of occurrence of values in [0, N).
The frequencies are kept in an instance-variable array, and
an instance variable max tracks the maximum frequency (for scaling).
% java Histogram 50 1000000