0

Output problems in java.

That's nearly it. I'm nearly done with my code. All I have to do is fix this one bug. Can someone find where I went wrong and leave a comment there? https://code.sololearn.com/cWUmN3RDQea9/#java

4th Nov 2021, 6:17 PM
OverdrivedProgrammer
7 Respuestas
+ 2
I will check your code and see whats up and you can benefit from this link. https://code.sololearn.com/c6lX3bpj1Iu4/#java
4th Nov 2021, 6:38 PM
SoloProg
SoloProg - avatar
+ 2
Organize your code and make it simpler so that you can edit it easily and you can understand it. https://code.sololearn.com/cVaR1WgkNJTw
5th Nov 2021, 10:36 AM
SoloProg
SoloProg - avatar
+ 1
Can you specify what is the input and output supposed to be.
4th Nov 2021, 6:31 PM
SoloProg
SoloProg - avatar
+ 1
Why did you use an integer and string array? you could use methods "functions" in java.
4th Nov 2021, 6:50 PM
SoloProg
SoloProg - avatar
0
It's there, at the bottom.
4th Nov 2021, 6:34 PM
OverdrivedProgrammer
0
while (isTyping) { str[strCount] = scan.nextLine(); //Scans command //You are not incrementing strCount after this. currentLiney = scan.nextLine(); //you are not giving input to this instruction so loop never ends until you enter "end" for this. if(currentLiney.equals("end")){ break; } //According to input you are passing,it need 4inputs but you giving only 3 //Input like add end 2 9 Works fine now. But you are not using any print statement to see any output anywhere... So no output
4th Nov 2021, 8:31 PM
Jayakrishna 🇮🇳
0
Sorry, I just updated the code - I went on a coding spree recently and forgot to update the sololearn code.
5th Nov 2021, 5:45 PM
OverdrivedProgrammer