这是我面临错误的代码:-
有趣的主要(){
val nullList = listOf(1, 3, null, "chair", "table", null)
val nullArrayList = arrayListOf("this", "house", null, 3, 9)
println("This list without the null values is ${nullList.filterNotNull()}")
println("This array without the null values is ${nullArrayList.filterNotNull()}")
}