Created
February 15, 2021 02:08
-
-
Save codinginflow/d192614e935cbe218c52ec13b061af78 to your computer and use it in GitHub Desktop.
Kotlin for Beginners Part 9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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