If I run this and input 3 the loop will stop because the condition method returns false, and thats what you want isnt it, because the user selected a value (3) which is a valid value between 0 and 4....