end while loop java code example
Example 1: java while loop break
while (true) {
....
if (obj == null) {
break;
}
....
}
Example 2: java how to exit loop
//how to exit loop in java
while (true) {
if (obj == null) {
break;
}
}