Added explanation for java solution

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