The method returns a 0 if there is no user input.