How to create lists in Kotlin? All Questions › Category: Kotlin › How to create lists in Kotlin? 0 Vote Up Vote Down chetan shidling asked 4 years ago I need short information. 1 Answers 0 Vote Up Vote Down chetan shidling answered 4 years ago Here is the code on how to create a list in Kotlin. fun main(args : Array<String>){var nums = listOf(1,2,3,4) for(i in nums){println(i)}} Output: 1 2 3 4