+ 4

I don't understand the problem! Please help

https://code.sololearn.com/ciGMpTP4canN/?ref=app

12th Oct 2017, 8:37 AM
GameRevolution
GameRevolution - avatar
2 Answers
+ 4
You created an Random object called r, so it's r.nextInt() in line 10, not random.nextInt()
12th Oct 2017, 8:41 AM
hmysjiang🍀
hmysjiang🍀 - avatar
+ 3
Thank you very much! :)
12th Oct 2017, 8:44 AM
GameRevolution
GameRevolution - avatar