📜  kotlin 子字符串 - Kotlin 代码示例

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

代码示例1
val name = "James Smith"
    
    // Get just 'James' with subSequence()
    val james = name.subSequence(0, 5)
    
    // First argument is inclusive
    // Second argument is exclusive