JAVA daily question 20