Lessn 45 – Kotlin programming language Collections

Lessn 45 – Kotlin programming language Collections

Hello viewer, You can now have our Tutorial Lessons in your android mobile device and read it offline.
Download kotlin Programming APP on PlayStore
Download Website SEO Lessons APP on PlayStore

Kotlin provides a wide range of classes for managing collections of data.

We have already seen some of the classes that allow managing collections:

  • For basic data types (optimized)
    ByteArray 
    ShortArray
    LongArray
    FloatArray
    DoubleArray
    BooleanArray
    CharArray
    
  • For any type of data:
    Array
    
  • List
    MutableList
    
  • Map
    MutableMap
    
  • Set
    MutableSet
    

We already worked on previous concepts with the arrays that store basic data types and with the class Array that allows us to store any type of data. In the next concepts we will see the classes List, Map and Set.

In order to manage lists (List), maps (Map) and sets (Set) there are two large groups: mutables (that is, after being created we can add, modify and delete elements) and immutable (once the collection is created we can not modify the structure)

About The Author

Related posts

Leave a Reply