The break statement in Java terminates the loop immediately, and the control of the program moves to the next statement following the loop.
-
Updated
Apr 12, 2023 - Java
The break statement in Java terminates the loop immediately, and the control of the program moves to the next statement following the loop.
Kotlin break statement is used to come out of a loop once a certain condition is met. This loop could be a for, while or do...while loop.
Add a description, image, and links to the break-keyword topic page so that developers can more easily learn about it.
To associate your repository with the break-keyword topic, visit your repo's landing page and select "manage topics."