![]() ![]() At the end of the second quarter of 2019 Google has declared that Kotlin has been preferred as a programming language for Android app developers. To access an element in the list you may use the traditional get() method as well as index operator, You may check if a value exists in the collection using the contains() method println("first's $įor more tech blogs, please visit Knoldus Blogs.Only In 2017, Google officially accepted Kotlin as the second official language for Android app development. ![]() In the following code the reference fruits is of this interface type, specialized to String for the parametric type: val fruits: List = listOf("Apple", "Banana", "Grape") The function listOf() returns a reference to an interface.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |