To terminate the outer loop in java, which statement is used? code example
Example: java how to exit loop
//how to exit loop in java
while (true) {
if (obj == null) {
break;
}
}
//how to exit loop in java
while (true) {
if (obj == null) {
break;
}
}