how to exit from while loop but not for loop java code example
Example: java while loop break
while (true) {
....
if (obj == null) {
break;
}
....
}
while (true) {
....
if (obj == null) {
break;
}
....
}