Language preferences

Report a typo

Your friend Sara learns languages – English and French, so you output Sara learns English in Kotlin code. You also have a friend Luc, who also learns languages, but those are programming languages – Kotlin and JavaScript, and you want output the line Luc learns Kotlin instead of the previous one. You added some lines to the code to change the output, but the order of lines is messed up. Place the code lines in the correct order.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                iterator.next()
              
                println(words.joinToString(" "))
              
                var words = mutableListOf("Sara", "learns", "English")
              
                iterator.next()
              
                }
              
                iterator.next()
              
                iterator.set("Luc")
              
                iterator.set("Kotlin")
              
                val iterator = words.listIterator()
              
                fun main() {
              
___

Create a free account to access the full topic