Adding java code per issue #1

Adding new feature per @patientsoxfan .  He asked for a Java version of this program.

This closes #1.