This question is an extension from the following link:
Why is my c != 'o' || c != 'x' condition always true?
The corresponding code is also in the link; I've edited the boolean part that caused the problem, so it takes in the correct value.
Now, the problem, as shown in the above picture, is that after the input has been captured by the java program, the loop does three more loops until it waits for the next input.
Why is it doing that? and how do I fix it?