caspicture.blogg.se

Kotlin immutable list
Kotlin immutable list













kotlin immutable list

You will create a food ordering program that uses lists in the Kotlin Playground.You will experiment with lists and list operations in the Kotlin Playground.How to iterate over all items of a list and perform an action on each item.The difference between the List and MutableList, and when to use each one.Able to create subclasses and understand how they inherit from each other.Able to define a Kotlin class, create an object instance from it, and access its properties and methods.Familiar with basic Kotlin programming concepts from Unit 1 of the Android Basics in Kotlin course: the main() function, functions arguments and return values, variables, data types and operations, as well as control flow statements.Familiar with using the Kotlin Playground for creating and editing Kotlin programs.

kotlin immutable list

In this codelab, you will use the Kotlin Playground to become familiar with lists in Kotlin and create a program for ordering different variations of noodle soup. Learning how to create and use lists is an important programming concept to add to your toolbox, and it will enable you to create more sophisticated apps. For example, there could be a list of news articles, songs, calendar events, or social media posts within an app.

kotlin immutable list

In programming, lists are also very useful. It's common to make lists for all sorts of situations in your everyday life such as a list of things to do, a list of guests for an event, a wish list, or a grocery list.















Kotlin immutable list