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.
-
Updated
May 1, 2023 - Kotlin
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.
The break statement in Java terminates the loop immediately, and the control of the program moves to the next statement following the 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."