📜  Kotlin Stirng Iterate - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:41.078000             🧑  作者: Mango

代码示例1
fun main(args: Array) {
    val line:String

    print("Enter a string : ")
    line = readLine().toString()

    line.forEach { c -> println(c) }
}