+ 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.
3 Réponses
+ 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.
+ 8
No, unfortunately :'/
https://www.sololearn.com/discuss/217079/?ref=app
+ 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.