Added explanation for java solution

As requested in PR https://github.com/eatnumber1/goal/pull/152#issuecomment-51273335