0

why this code is not running? what's the problem?

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

23rd Apr 2018, 9:49 AM
RH Tasin
RH Tasin - avatar
3 Réponses
+ 3
scanner has no method nextString use nextLine instead
23rd Apr 2018, 9:53 AM
michal
+ 1
or next (). if u want to get only one word (with no space between)
23rd Apr 2018, 10:14 AM
Farshaad Heydari
Farshaad Heydari - avatar
0
It's next(); No space
23rd Apr 2018, 11:37 AM
Twenty-three