+ 1

Handling java inputs in Sololearn

Hi coders, I have problem with sololearn's way of requestin input for java programs. It asks for inputs before executing programs, and that is causing problems to my codes. They don't work properly here, when they are compiled on pc, they work as intended. So, is there a way of getting around it, or can we all report this to sololearn, so they try to make some kind of console like on onlinegdb.com. I don't know if I'm allowed to post links, so tell me if I'm not, I will cut it out. Thanks in advance.

23rd Apr 2018, 8:47 PM
Amar
Amar - avatar
3 Answers
+ 12
SoloLearn's online compiler compiles and runs your code on their servers and sends the result back, so it needs all the input right away. Codes that require unknown amounts of input cannot be run correctly (Ex: guessing games). However, for a known amount and order of inputs, you can enter them all in the input box on their own lines, and they'll be used in order. Ex, for 5 ints: 21 8 79 2 7 btw links are usually fine as long as they aren't malicious and/or advertisements/self-promotion.
23rd Apr 2018, 9:05 PM
Tamra
Tamra - avatar
23rd Apr 2018, 9:03 PM
Tashi N
Tashi N - avatar
+ 2
I guessed so, but as I told it would be nice if they implement something like onlinegdb.com, so code is compiled on user device. That way it could work as intended.
24th Apr 2018, 9:06 AM
Amar
Amar - avatar