Input unsuppprted java | SoloLearn: Learn to code for FREE!

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

4/5/2019 10:01:26 AM

Space

12 Answers

New Answer

+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

+8

What about buffer stream Benjamin Walters

+7

Is it good to mention other ways of input in java in comment section of that chapter ?

+6

Is Bufferr Stream supported in SoLoLearn IDE? Benjamin Walters

+4

Ipang I know that. I wanted to try next technique. Console.readline doesnt work here?

+2

Well I use data input stream https://code.sololearn.com/ck6sj0yU9wEN/?ref=app

+1

The Buffered Reader does the same thing as the scanner with enhanced features.

+1

It doesn't seem so. But scanner is supported.

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

+1

console.readline works only in console ,you may also want to check docs for that method

+1

You require a Scanner for Getting User Input https://code.sololearn.com/cpf0WcSi6dfk/?ref=app

0

Import scanner class ... make scanner object ... use for variables