In addition to forEach(), Kotlin supports a for loop, akin to those in many other programming languages.

You can learn more about this in:
Run Expand Edit