+ 7

Input unsuppprted java

https://code.sololearn.com/c9rcy41iaSR8/?ref=app In this code, I didnt get the output that inputs data user. Why ? Is it unsupported in sololearn?

5th Apr 2019, 10:01 AM
Sarthak Pokhrel
Sarthak Pokhrel - avatar
12 Antworten
+ 2
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
5th Apr 2019, 3:31 PM
Benjamin Walters
Benjamin Walters - avatar
+ 7
What about buffer stream Benjamin Walters
5th Apr 2019, 3:34 PM
Sarthak Pokhrel
Sarthak Pokhrel - avatar
+ 7
Is it good to mention other ways of input in java in comment section of that chapter ?
5th Apr 2019, 3:57 PM
Sarthak Pokhrel
Sarthak Pokhrel - avatar
+ 6
Is Bufferr Stream supported in SoLoLearn IDE? Benjamin Walters
5th Apr 2019, 3:43 PM
Sarthak Pokhrel
Sarthak Pokhrel - avatar
+ 4
Ipang I know that. I wanted to try next technique. Console.readline doesnt work here?
5th Apr 2019, 11:22 AM
Sarthak Pokhrel
Sarthak Pokhrel - avatar
+ 2
6th Apr 2019, 11:58 AM
Saksham Jain
Saksham Jain - avatar
+ 1
The Buffered Reader does the same thing as the scanner with enhanced features.
5th Apr 2019, 3:41 PM
Benjamin Walters
Benjamin Walters - avatar
+ 1
It doesn't seem so. But scanner is supported.
5th Apr 2019, 3:47 PM
Benjamin Walters
Benjamin Walters - avatar
+ 1
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.
5th Apr 2019, 3:49 PM
Seniru
Seniru - avatar
+ 1
console.readline works only in console ,you may also want to check docs for that method
5th Apr 2019, 3:57 PM
Saksham Jain
Saksham Jain - avatar
+ 1
You require a Scanner for Getting User Input https://code.sololearn.com/cpf0WcSi6dfk/?ref=app
6th Apr 2019, 1:36 PM
Kevin Astorga
0
Import scanner class ... make scanner object ... use for variables
6th Apr 2019, 11:54 AM
Abhinand
Abhinand - avatar