(java) Solved problem 9