Kotlin ranges are created with rangeTo() function, ... fun main(args: Array<String>) { for ( num in 1.rangeTo(4) ) { println(num) } }.
確定! 回上一頁