Kotlin Tutorial #16: Arrays vs Lists

preview_player
Показать описание

In this video, I walk you through two basic data structures in Kotlin: arrays and lists. While arrays and lists are similar, there are important differences you need to know to decide when to use which. This is always a common question in job interviews.

Рекомендации по теме
Комментарии
Автор

3 years late but i was expecting for you to explain mutableListOf because i thought there were only Arrays, Lists and Mutable lists, now i learned there is another one wich is an arrayList

nossir
Автор

*I have tons of new tutorials coming :) Please subscribe to get notified as soon as they're out!*


What other topics would you like me to cover? Please comment below 👇

PeterSommerhoff
Автор

around 2:30 explains to use list if you want to change the collection. then says listOf is immutable and cannot be changed. so what's the diff. between array and list then?

gwapojudkoalangan
Автор

What about mutableListOf vs arrayListOf and why you would use one over the other?

JDMorris
Автор

hey, cools videos! I have a question: is the variable called list immutable, cause it's a val and not a var? If not, then what is the difference between array and list type...

krrristinarius