Simple java application - Guess a number between 1 and 10