In this code, I didnt get the output that inputs data user. Why ?
Is it unsupported in sololearn?
4/5/2019 10:01:26 AM
This method won't work in the IDE. You need a scanner for that. See this answer https://stackoverflow.com/questions/4644415/java-how-to-get-input-from-system-console
What about buffer stream
Is it good to mention other ways of input in java in comment section of that chapter ?
Is Bufferr Stream supported in SoLoLearn IDE?
I know that. I wanted to try next technique.
Console.readline doesnt work here?
Well I use data input stream
The Buffered Reader does the same thing as the scanner with enhanced features.
It doesn't seem so. But scanner is supported.
As I can remember only Scanner is supported to get user inputs in sololearn. That's why they are encouraging it so much in the lesson.
console.readline works only in console ,you may also want to check docs for that method
You require a Scanner for Getting User Input
Import scanner class ... make scanner object ... use for variables
GET THE FREE APP
Learn Playing. Play Learning
Send us a message