• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 1

What's the difference between Arrays, Lists, Sets and Maps in Kotlin?

How do I know which one to use?

maplistarraysetkotlin
23rd Jul 2018, 12:29 PM
ReimarPB
ReimarPB - avatar
1 Answer
+ 2
Array: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html List: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html Set: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html Map: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html And ArrayList: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-array-list/ There are some differences of their structures and the way to use.
23rd Jul 2018, 1:36 PM
Disvolviĝo;
Disvolviĝo; - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Can someone teach me a beginner code for beginner like me ? (I would be very happy if you could help)
1 Votes
job
2 Votes
Add border between list number and text
0 Votes
How to insert images into the web
1 Votes
Can i learn brojecting?!
0 Votes
Missing courses
0 Votes
Can you please introduce mql5 language here.
0 Votes
Are they planning to teach lua in the future?
0 Votes
Stuck on a module
0 Votes
Question to Sololearn users
0 Votes