Список печати Kotlin
//Array has a forEach method as well which can take a lambda:
var someList : Array<String> = arrayOf("United","Chelsea","Liverpool")
someList.forEach { System.out.print(it) }
//or a method reference:
var someList : Array<String> = arrayOf("United","Chelsea","Liverpool")
someList.forEach(System.out::print)
Fancy Flatworm