Master WHILE, DO/WHILE and FOR LOOPS in ANDROID KOTLIN with THIS

Publicado el: 01 enero 1970
en el canal de: tutorialsEU - Android
648
26

MASTER one of the Programming BASICS, WHILE, DO/WHILE and FOR LOOPS with ANDROID KOTLIN! Want to learn everything about Kotlin? Get this!    • Android Complete Course  

Here are the links by the way!

Free download. https://page.tutorials.eu/android

Our Android Masterclass. https://bit.ly/3l6vG86

while and do-while loops execute their body continuously while their condition is satisfied. The difference between them is the condition checking time:

while checks the condition and, if it's satisfied, executes the body and then returns to the condition check.

do-while executes the body and then checks the condition. If it's satisfied, the loop repeats. So, the body of do-while executes at least once regardless of the condition.

The for loop iterates through anything that provides an iterator. This is equivalent to the foreach loop in languages like C#.

The body of for can be a block.

As mentioned before, for iterates through anything that provides an iterator. This means that it

· has a member or an extension function iterator() that returns Iterator

· has a member or an extension function next()

· has a member or an extension function hasNext() that returns Boolean.

All of these three functions need to be marked as operator.

To iterate over a range of numbers, use a range expression

A for loop over a range or an array is compiled to an index-based loop that does not create an iterator object.

Alternatively, you can use the withIndex library function

#android #kotlin #code #programming #tutorials #learn #tutorial #tutorialseu

tutorialsEU offers you free video tutorials about programming and development for complete beginners up to experienced programmers.
This includes C#, Unity, Python, Android, Kotlin, Machine Learning, etc.
Stay tuned and subscribe to tutorialsEU: https://goo.gl/rBFh3x
Android:    / @tutorialseuandroid  
C#:    / @tutorialseuc  
Unity:    / @tutorialseuunity  
Facebook:   / tutorialseu-109380204093233  
LinkedIn:   / tutorialseu  
Discord:   / discord  


En esta página del sitio puede ver el video en línea Master WHILE, DO/WHILE and FOR LOOPS in ANDROID KOTLIN with THIS de Duración hora minuto segunda en buena calidad , que subió el usuario tutorialsEU - Android 01 enero 1970, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 648 veces y le gustó 26 a los espectadores. Disfruta viendo!