Tech Support Forum banner
1 - 5 of 5 Posts

·
Registered
Joined
·
2 Posts
Discussion Starter · #1 ·
I wrote the code in Kotlin and when I run it I get the error Unresolved reference: split. I don’t understand something how to fix it, because there is still little practice with this programming language.
In general, I want to analyze the code so that I can immediately see all its errors. Maybe someone knows a good service for such work?
Code:
fun main() {
    val str = "A:B:C"
    val delim = ":"

    val list = str.split(delim)

    println(list)    // [A, B, C]
}
 

·
Team Manager, Microsoft Support
Joined
·
33,549 Posts
1 - 5 of 5 Posts
Top