+ 1

Why can I not simply type in "Int userInput = readInt(" type number:");"?.

I have done a Java class before and that's how they made me do the user input. It seems simple and easy compared to the scanner method.

28th Dec 2018, 9:09 PM
Noah Field
Noah Field - avatar
1 Resposta
+ 2
There is no such a method as I checked it. And Sololearn prompts the input only if you collect input with Scanner .
30th Dec 2018, 8:03 AM
Seniru
Seniru - avatar