How to fix “error: bad operand types for binary operator ‘||’ ” in java
To answer your question about the while loop condition directly (are the two conditions equivalent?): No, they aren’t equivalent, but it’s only a small change needed. The following two conditions are equivalent by DeMorgan’s Law. So basically you have to add a ! before your second while loop condition to make them equivalent (assuming it really was a … Read more