728x90
Input
val str = "Let's study!!!"
println(str.slice(0..3))
Output
Let'
728x90
'Kotlin' 카테고리의 다른 글
[Kotlin] LiveData를 유연하게 사용하는 map, switchMap (0) | 2021.01.01 |
---|---|
[kotlin] 배열 뒤집기 - reverse(), reversed(), reversedArray() (0) | 2020.12.19 |
[kotlin] 수 반올림하기 (0) | 2020.12.19 |
[Kotlin] 코틀린 표준 라이브러리 let(), also(), apply(), run(), with() - (3) (0) | 2020.07.22 |
[Kotlin] 코틀린 표준 라이브러리 let(), also(), apply(), run(), with() - (2) (0) | 2020.07.22 |
댓글