Skip to content

Sujal123456/Kotlin-Arrays

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Kotlin-Arrays

//It works on varang /* [varag]:It tells that you can have n number of arguments inside any function */

val numbers= arrayOf(1,2,3,4,5)

val name= arrayOf("1","2","3","4",5) //We haven't given any type to array

val nameString= arrayOf("1","2","3","4","5") val num=Array(size:6,{i -> i* 1})

val numArray= intArrayOf(1)

val nullArray= arrayOfNulls(size:10) //0 1 2 3 4 }

fun main(){ println("num[4]")

}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published