Skip to main content

Posts

Showing posts from March, 2020

Kotlin Notes

Loop annotation loop@ .. @loop is a goto label used in the Kotlin which will move the statement of execution to the loop@ loop@ for (number in 1 .. 10) {            println("Number: $number")            for (i in 1 .. 6) {              if (i == 4)                 break @loop              println("Inner number: $i")             }       } The output will be Number: 1 Inner number: 1 Inner number: 2 Inner number: 3