Some of you can help me with this little problem? I'm very new to Kotlin and Android development! I don't understand why this snippet of code returns me the following error:
class Catalog { var musicList: List<Music> = ArrayList() } class Music{ var id: String = "" } fun main(args: Array<String>) { var test: Catalog test.musicList[0] = "1" } ERROR:
Variable 'test' must be initialized What is wrong? Thank you all!
test