Which programming language is this?
fun main() {
val fruits = mutableListOf("apple", "pear")
fruits.add("plum")
for (f in fruits) println(f)
}
Answer: Kotlin
fun main() with val, mutableListOf and println is Kotlin.fun main() {
val fruits = mutableListOf("apple", "pear")
fruits.add("plum")
for (f in fruits) println(f)
}
Answer: Kotlin
fun main() with val, mutableListOf and println is Kotlin.