Solution 001 in Java.

Gosh it has been a long time, since I wrote any code in Java...

Problem001.java