fill, reverse, shuffle, sort 등)을 보고합니다.
이로 인해 런타임에서 UnsupportedOperationException이 발생할 수 있습니다.
예:
import java.util.Collections
fun test() {
val immutableList = listOf(1, 2)
Collections.reverse(immutableList)
}
문제를 해결하려면 목록을 가변으로 설정합니다.