Why can I not simply type in "Int userInput = readInt(" type number:");"?. | SoloLearn: Learn to code for FREE!

+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.

12/28/2018 9:09:23 PM

Noah Field

1 Answer

New Answer

+2

There is no such a method as I checked it. And Sololearn prompts the input only if you collect input with Scanner .