do while not end of string kotlin code example Example: while loop kotlin for (item in collection) print(item)