[Solved] Why is Java skipping my second condition in the while loop? [closed]


If the first condition is false then it wont consider the second condition. If first condition is true then it will also evaluate the second condition. This is because you are using && operation. If you use || then if the first one is false it will evaluate the next condition.

4

solved Why is Java skipping my second condition in the while loop? [closed]