(java) Solved problem 16