I am taking a graduate course in Applied Statistics that uses the following textbook (to give you a feel for the level of the material being covered): [Statistical Concepts and Methods](http://amzn.com/0471072044), by G. K. Bhattacharyya and R. A. Johnson.

The Professor requires us to use SAS for the homeworks. 

My question is that: is there a Java library(ies), that can be used instead of SAS for problems typically seen in such classes.

I am currently trying to make do with [Apache Math Commons](http://commons.apache.org/math/) and though I am impressed with the library (it's ease of use and understandability) it seems to lack even simple things such as the ability to draw histograms (thinking of combining it with a charting library).

I have looked at Colt, but my initial interest died down pretty quickly. 

Would appreciate any input -- and I've looked at similar questions on Stackoverflow but have not found anything compelling.

NOTE: I am aware of R, SciPy and Octave and java libraries that make calls to them -- I am looking for a Java native library or set of libraries that can together provide the features I'm looking for.

NOTE: The topics covered in such a class typically include: one-samle and two-sample tests and confidence intervals for means and medians, descriptive statistics, goodness-of-fit tests, one- and two-way ANOVA, simultaneous inference, testing variances, regression analysis, and categorical data analysis.