Browsing tag:

continue statement

Kotlin: Break and Continue Statements

Break and Continue Statements allow us to define jumps in our code and they are used inside Loops breakstatement allow us to jump to the end of the loop and halt any further iterations. This is useful whenever we¬† are interested in the first occurrence of something. val string = “Kotlin” for (char in string){ […]