Refactoring Java procedure on Problem 1
Start Java procedure Problem 2 NOT FINISHED