Skip to content

Commit d9599e1

Browse files
Exercise 3
1 parent 320c9ca commit d9599e1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

43.Java_Exercise_3/README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Java Exercise 3: Guess the Number (OOPs Edition)
2+
3+
### Create a class Game, which allows a user to play "Guess the Number" game once.
4+
- Game should have the following methods:
5+
- Constructor to generate the random number
6+
- takeUserInput() to take a user input of number
7+
- isCorrectNumber() to detect whether the number entered by the user is true
8+
- getter and setter for noOfGuesses
9+
- Use properties such as noOfGuesses(int), etc to get this task done!
10+
11+
**Ultimate Java Cheatsheet: [Click To Download](https://api.codewithharry.com/media/videoSeriesFiles/courseFiles/java-tutorials-for-beginners-43/UltimateJavaCheatSheet.pdf)**

0 commit comments

Comments
 (0)