(java) Solved problem 39