![]() ![]() ![]() If we are interested in working with indices, we can use indices property of array. Wednesday Kotlin for loop Example with Integer array Var days = arrayOf("Sunday","Monday","Tuesday","Wednesday") Kotlin’s for loop syntax is similar to for each syntax in Java. In this article, we will see different ways to iterate through collections in kotlin using for loop, for with indices, for loop with range and until.
0 Comments
Leave a Reply. |