How do I make a list on Kotlin?

Inside main() , create a variable called numbers of type List<Int> because this will contain a read-only list of integers. Create a new List using the Kotlin standard library function listOf() , and pass in the elements of the list as arguments separated by commas .

Sizin İçin Seçtik  Nedir bu Pi network?

Leave a Reply

Your email address will not be published. Required fields are marked *