![]() Variables that are instances of standard Kotlin types can’t contain null values: val> val s: String = nullĮrror: null can not be a value of a non-null type StringĮrror: null can not be a value of a non-null type Int I use String in those statements, but the same things can be said about every other type, including Int, Float, Person, etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |