KotlinTutorial.kt
fun main() { val names = arrayOf("Jim", "John", "Jenny", "Jamie") names[0] = "Jeremy" println("Number of elements: ${names.size}") println("First element: ${names[0]}") println("Last element: ${names[2]}") }
fun main() { val names = arrayOf("Jim", "John", "Jenny", "Jamie") names[0] = "Jeremy" println("Number of elements: ${names.size}") println("First element: ${names[0]}") println("Last element: ${names[2]}") }