FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Java-Tutorials/43.Java_Exercise_3 at main · kishanrajput23/Java-Tutorials · GitHub

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

Java Exercise 3: Guess the Number (OOPs Edition)

Create a class Game, which allows a user to play "Guess the Number" game once.

  • Game should have the following methods:
  • Constructor to generate the random number
  • takeUserInput() to take a user input of number
  • isCorrectNumber() to detect whether the number entered by the user is true
  • getter and setter for noOfGuesses
  • Use properties such as noOfGuesses(int), etc to get this task done!

Ultimate Java Cheatsheet: Click To Download


Back | FazBrowse Home | New Git URL