+ 1
A little help guys, How do i get this working. The program should prompt the user x + y
2 Réponses
+ 4
Line 6: Typo -> Scanner
Line 12/13: Math.random returns a double -> parse it to int
x = (int)(Math.random() *25);
y = (int)(Math.random() * 25);
On sololearn you have to input all values at the beginning. If I'm correct you need to input 21 values.
+ 2
Scanner is mispelt on line 6.
Add "(int)", no quotes, before each Math.random() to cast them as integers