How to avoid infinite loops when you use while and nested if statements in Java? I am taking a beginner's course.
Oct 01, 2019I think u want to exit the loop based on ur if statement. Use "break;" for the if conditions example: While(isLoading){ If(x == y) { break; } }
Oct 01, 2019