- 1

How Can I Write this statement

Hi, how are you guys â˜ș I have questions in Java, guess the number 1 to 10 write any numbers u want, I want him to guess the number every time he click Run for program, so How Can I Write the statement ❀.

20th Apr 2018, 3:55 AM
nan
3 Answers
+ 9
Hi, you'll find many examples on the code section. Simply search for 'guess'. Make sure you credit the author if you copy one of the codes and keep it private.
20th Apr 2018, 5:14 AM
Tashi N
Tashi N - avatar
20th Apr 2018, 5:12 AM
Ariela
Ariela - avatar
+ 2
Just change the nextInt() argument to 10 instead of 6
20th Apr 2018, 5:13 AM
Ariela
Ariela - avatar