An integer from 0 to 999, inclusive, is randomly chosen. The user enters a number from the keyboard. The program responds, telling the user whether the entered number is more or less than the secret number. If the user guesses the number in 10 attempts, then the program displays: "You guessed it!"
And more refactoring
You must be signed in to leave a comment
25 June 2022, 17:14
I have no idea why this is called "And More Refactoring". It's one of the easiest tasks I've seen in a long time, but it has absolutely nothing to do with refactoring. To pass this task you only need Java skills from Java Syntax. Still kind of fun, though.