Question
-
Topic
-
“Split” error when running code for application
I wrote a code in Kotlin and when I run it I get an error Unresolved reference: split. I do not understand something how to fix this, because so far there is little practice with this programming language.
fun main() {
val str = “A:B:C”
val delim = “:”val list = str.split(delim)
println(list) // [A, B, C]
}
All Answers
Viewing 1 reply thread