Skip to content

Instantly share code, notes, and snippets.

@MostafaNasiri
Created November 23, 2019 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MostafaNasiri/eb02f3d0a305265a0bfbe642249a136e to your computer and use it in GitHub Desktop.
Save MostafaNasiri/eb02f3d0a305265a0bfbe642249a136e to your computer and use it in GitHub Desktop.
fun main() {
val nums = intArrayOf(1, 3, 5, 7, 9)
println(nums.size)
println(nums[1])
// You can have an array of values with different types
val items = arrayOf(1, "Tom", 3.14)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment