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
7 Antworten
+ 2
I will check your code and see whats up
and you can benefit from this link.
https://code.sololearn.com/c6lX3bpj1Iu4/#java
+ 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
+ 1
Can you specify what is the input and output supposed to be.
+ 1
Why did you use an integer and string array?
you could use methods "functions" in java.
0
It's there, at the bottom.
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
0
Sorry, I just updated the code - I went on a coding spree recently and forgot to update the sololearn code.