extension property Kotlin

var StringBuilder.lastChar: Char
get() = get(length - 1)
set(value) = setCharAt(length - 1, value)

덧글

댓글 입력 영역