+ 1
Error in compiling in solo learn
I have recently wrote a small game in java. But i wrote in Eclipse at my computer and when I copy and paste it in solo learn compiler and then compile it, I get an error. What should I do? How should I overcome this problem?
4 Respostas
+ 5
It's happening because you are taking input in do while loop which is not fix means you can take any numbers of input. But Sololearn's input support only on fix numbers of input as I know.
for example if you are taking input in for loop like this
for(int i = 0; i < 5; i++) {
int [i] = scanner.nextInt();
}
So here numbers of input is fixed menas you can take 5 value at a time.
Note :- Let's see what other people say. 😁
+ 3
Where is your code?
+ 1
Yeah, it makes sense. Thank you :)