Tablesaw is a gateway drug for doing data science in Java. For Java developers new to data science, it’s the easiest way to get started. A new article published on Dzone explains why and provides a short tutorial to show you how. Check out the article: Data Science for Java Developers With Tablesaw.
You can find the example code here: https://github.com/jtablesaw/tablesaw/blob/master/core/src/examples/java/tech/tablesaw/Example1.java