Skip to content

Instantly share code, notes, and snippets.

@codinginflow
Created February 15, 2021 02:08
Show Gist options
  • Save codinginflow/d192614e935cbe218c52ec13b061af78 to your computer and use it in GitHub Desktop.
Save codinginflow/d192614e935cbe218c52ec13b061af78 to your computer and use it in GitHub Desktop.
Kotlin for Beginners Part 9
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]}")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment