Added the class and .java file for the exercise. I believe it will be easier to accomplish this task using bash scripting. I'll be posting the solution for the problem in the languages that other people used to see how they work.